voluptasmollitia
Version:
Monorepo for the Firebase JavaScript SDK
20 lines (11 loc) • 603 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@firebase/database](./database.md) > [OnDisconnect](./database.ondisconnect.md) > [remove](./database.ondisconnect.remove.md)
## OnDisconnect.remove() method
Ensures the data at this location is deleted when the client is disconnected (due to closing the browser, navigating to a new page, or network issues).
<b>Signature:</b>
```typescript
remove(): Promise<void>;
```
<b>Returns:</b>
Promise<void>
Resolves when synchronization to the server is complete.