younifyd
Menu

Delete a bunch of documents

Delete a bunch of documents

DELETE/collections/{collectionName}/documents

Use it in a workflow

  1. Add a step and choose the Typesense connector.
  2. Pick the Delete a bunch of documents action (under documents).
  3. Fill in the fields below, then reference the result from later steps as {{deleteABunchOfDocuments.response.data}}.

Request

Path parameters

collectionNamestringrequired

The name of the collection to delete documents from

Query parameters

deleteDocumentsParametersobject
filter_bystringrequired
batch_sizeinteger

Batch size parameter controls the number of documents that should be deleted at a time. A larger value will speed up deletions, but will impact performance of other operations running on the server.

ignore_not_foundboolean
truncateboolean

When true, removes all documents from the collection while preserving the collection and its schema.

Response

Returns 200 with an object. Read it in later steps with {{deleteABunchOfDocuments.response.data.<field>}}.

num_deletedinteger
json
{
  "num_deleted": 0
}

Need more? See the Typesense guide for connection setup and behaviour shared by every action.

Delete a bunch of documents — Typesense — Documentation