Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/appwrite/src/services/database.ts>Database#deleteDocument

[READ-ONLY] Official Appwrite Deno SDK 🦕
Go to Latest
method Database.prototype.deleteDocument
import { Database } from "https://deno.land/x/appwrite@0.4.0/src/services/database.ts";

Delete Document

Delete a document by its unique ID. This endpoint deletes only the parent documents, its attributes and relations to other documents. Child documents will not be deleted.

Type Parameters

T extends unknown

Parameters

collectionId: string
documentId: string

Returns

Promise<T>