Change Intelligence is coming.

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 whereCondition or sqlPlusPlusQuery will remove all documents matching the condition.

Available attributes

Attribute

Type

Description

Required

bucketName

String

The name of the bucket containing the collection.

Yes

scopeName

String

The name of the scope containing the collection.

Yes

collectionName

String

The name of the collection to remove documents from.

Yes

id

String

The key of a document to remove. Multiple id elements can be specified. Mutually exclusive with whereCondition and sqlPlusPlusQuery.

Yes*

whereCondition

String

An N1QL WHERE clause identifying documents to remove. Mutually exclusive with id and sqlPlusPlusQuery.

Yes*

sqlPlusPlusQuery

String

A full SQL++ query for document selection. Mutually exclusive with id and whereCondition.

Yes*

loading

loading

loading