Hi there! Are you looking for the official Deno documentation? Try docs.deno.com for all your Deno learning needs.

deleteDoc

Deletes the document referred to by the specified DocumentReference.

function deleteDoc<AppModelType, DbModelType extends DocumentData>(reference: DocumentReference<AppModelType, DbModelType>): Promise<void>;
§
deleteDoc<AppModelType, DbModelType extends DocumentData>(reference: DocumentReference<AppModelType, DbModelType>): Promise<void>
[src]

§Type Parameters

§
AppModelType
[src]
§
DbModelType extends DocumentData
[src]

§Parameters

§
reference: DocumentReference<AppModelType, DbModelType>
[src]
  • A reference to the document to delete.

§Return Type

§
Promise<void>
[src]

A Promise resolved once the document has been successfully deleted from the backend (note that it won't resolve while you're offline).