Home > @firebase/auth > deleteUser
deleteUser() function
Deletes and signs out the user.
Signature:
export declare function deleteUser(user: User): Promise<void>;
Parameters
Parameter | Type | Description |
---|---|---|
user | User | The user. |
Returns:
Promise<void>
Description
Important: this is a security-sensitive operation that requires the user to have recently signed in. If this requirement isn't met, ask the user to authenticate again and then call reauthenticateWithCredential().