functionality delete_attachment in edit lesson