Home > @firebase/database > remove
remove() function
Removes the data at this Database location.
Any data at child locations will also be deleted.
The effect of the remove will be visible immediately and the corresponding event 'value' will be triggered. Synchronization of the remove to the Firebase servers will also be started, and the returned Promise will resolve when complete. If provided, the onComplete callback will be called asynchronously after synchronization has finished.
Signature:
export declare function remove(ref: Reference): Promise<void>;
Parameters
Parameter | Type | Description |
---|---|---|
ref | Reference | The location to remove. |
Returns:
Promise<void>
Resolves when remove on server is complete.