We copy our Production Jira and Confluence down to a Development environment. We do not copy attachments because we do not need them there.
I am looking for a database query to delete all the attachment references in the database, to avoid errors in logs when re-indexing both Jira and Confluence because it cannot find the attachment.