def delete_profile(): user_key = current_user.key() #Sign out and capture the redirect response = sign_out() #delete the user HubUser.delete(user_key) #return the redirect return response