Achieve the function of delete_user