add delete to attachmentController