Hi,
Currently we have more than 700 custom fields and wanted to have a clean up where custom fields that is not associated to any project or last used was 2 years ago can be deleted. We could do it manually from UI view but I'm currently exploring in creating a PowerShell script with using APIs to get the list.
I'm aware of "https://<site-name>/rest/api/2/field" would get me the list of fields but unsure how to play it out from there.
Would appreciate if you could help me in creating or give some tips for next steps.
Thank you!