finish delete function for admin