Added ability to delete attachments.