The parameters for deleting the document. This includes:
doctype: The document type of the document to be deleted.docname: The name or identifier of the document to be deleted.A promise that resolves to true if the document was successfully deleted, or false if the deletion failed.
Deletes a document from the database.
This function performs an asynchronous request to the server to delete a document of the specified type. Once a document is deleted, it is permanently removed from the database and cannot be recovered. Ensure that the document is not required for future reference before calling this function.
Example
Example
Example
Throws
Throws an error if the request fails or if there is an issue with deleting the document.