comment: Fix a bug attachments are not deleted.