Attachments in the attachments table can be referenced from zero or many post_attachments relations.
Multiple branches of a post can be referencing the same attachment, so it isn't practical to remove them in sync-post.
This issue is for creating a cleanup task that removes unreferenced attachments from both S3 and the db.
Attachments in the
attachmentstable can be referenced from zero or manypost_attachmentsrelations.Multiple branches of a post can be referencing the same attachment, so it isn't practical to remove them in sync-post.
This issue is for creating a cleanup task that removes unreferenced attachments from both S3 and the db.