Add an attachment delete function