I'm aiming to delete duplicated attachments from a Confluence instance using the rest API. There are multiple duplicated files which are attached to pages but not visible on the page, and not being used, hence we're looking to delete them.
Is there a field which can be used with the rest API to identify attachments which are attached to a page but don't appear on it?