For release 3.3 and above, getAttachmentList and runFromAttachmentList actions provide a lot of flexibility to find and do actions on a set of attachments determined by various conditions. One of the primary use cases is to remove attachments.
Condition on what content contains the attachments
By space - all content in a space. Use the space parameter.
By page - a specific page identified by space and title or id (content id).