how to delete a user account using pyrebase?

Solution
auth = firebase.auth()
user = auth.sign_in_with_email_and_password(email, password)
auth.delete_user_account(user['idToken'])