Couchbase removeDocuments
Last updated: July 13, 2026
Removes one or more documents from a Couchbase collection by document key, N1QL WHERE clause, or SQL++ query.
Known limitations:
This operation is irreversible. There is no automatic rollback support.
Using
whereConditionorsqlPlusPlusQuerywill remove all documents matching the condition.
Available attributes
Attribute | Type | Description | Required |
|---|---|---|---|
| String | The name of the bucket containing the collection. | Yes |
| String | The name of the scope containing the collection. | Yes |
| String | The name of the collection to remove documents from. | Yes |
| String | The key of a document to remove. Multiple | Yes* |
| String | An N1QL WHERE clause identifying documents to remove. Mutually exclusive with | Yes* |
| String | A full SQL++ query for document selection. Mutually exclusive with | Yes* |