voluptasmollitia
Version:
Monorepo for the Firebase JavaScript SDK
27 lines (15 loc) • 856 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@firebase/firestore](./firestore.md) > [/](./firestore_.md) > [deleteDoc](./firestore_.deletedoc.md)
## deleteDoc() function
Deletes the document referred to by the specified `DocumentReference`<!-- -->.
<b>Signature:</b>
```typescript
export declare function deleteDoc(reference: DocumentReference<unknown>): Promise<void>;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| reference | [DocumentReference](./firestore_.documentreference.md)<!-- --><unknown> | A reference to the document to delete. |
<b>Returns:</b>
Promise<void>
A Promise resolved once the document has been successfully deleted from the backend (note that it won't resolve while you're offline).