UNPKG

voluptasmollitia

Version:
29 lines (16 loc) 797 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@firebase/auth](./auth.md) &gt; [deleteUser](./auth.deleteuser.md) ## deleteUser() function Deletes and signs out the user. <b>Signature:</b> ```typescript export declare function deleteUser(user: User): Promise<void>; ``` ## Parameters | Parameter | Type | Description | | --- | --- | --- | | user | [User](./auth.user.md) | The user. | <b>Returns:</b> Promise&lt;void&gt; ## Remarks 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()](./auth.reauthenticatewithcredential.md)<!-- -->.