finish admin delete function