Home > git-documentdb > GitDocumentDB > delete
GitDocumentDB.delete() method#
Delete a document by _id property in JsonDoc
Signature:Parameters#
| Parameter | Type | Description |
|---|---|---|
| jsonDoc | JsonDoc | Only the _id property of the JsonDoc is referenced. _id is a file path whose extension is omitted. |
| options | DeleteOptions |
Promise<DeleteResultJsonDoc >
Remarks#
- This is an alias of GitDocumentDB#rootCollection.delete()
Exceptions#
# Errors from deleteWorker