Astra DB icon

Astra DB

Interact with DataStax Astra DB collections for document operations

Delete

AI-generated

Summary

Delete documents from a specified collection in Astra DB based on filter criteria.

Inputs

  • keyspace (required) — The name of the Astra DB keyspace to operate within.
  • collection (required) — The name of the Astra DB collection from which to delete documents.
  • filter (required) — JSON formatted filter criteria to specify which documents to delete.

Output shape

no body — success/failure only

Deletion occurs based on the provided filter criteria; ensure filter is correctly formatted to prevent unintended data loss.

Examples

Example 1: Delete all users with status 'inactive' from the 'users' collection in the 'user_management' keyspace.

{ "keyspace": "user_management", "collection": "users", "filter": "{ "status": "inactive" }" }

Discussion