delete function finished in assignmentlibrary