Home > git-documentdb > Collection > delete
#
Collection.delete() methodDelete a document by _id property in JsonDoc
Signature:#
ParametersParameter | Type | Description |
---|---|---|
jsonDoc | JsonDoc | JsonDoc whose _id is shortId. Only the _id property is referenced. shortId is a file path whose collectionPath and extension are omitted. |
options | DeleteOptions |
Promise<DeleteResultJsonDoc >
#
Exceptions# Errors from deleteWorker