<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@firebase/firestore](./firestore.md) &gt; [/](./firestore_.md) &gt; [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)<!-- -->&lt;unknown&gt; | A reference to the document to delete. |

<b>Returns:</b>

Promise&lt;void&gt;

A Promise resolved once the document has been successfully deleted from the backend (note that it won't resolve while you're offline).

