0
1
KKKhalid Khan
This code creates a promise that deletes a document from the appwrite database. The document IDs are provided as parameters. Once the promise has been fulfilled, the document is deleted.
Shortcut: appwrite.web.deletedoc
let promise = sdk.database.deleteDocument('[COLLECTION_ID]', '[DOCUMENT_ID]');