remove attachments when entry is deleted