Implemented deletion of attachments.