Cosmos DB icon

Cosmos DB

Cosmos DB Node - Upsert documents to Azure Cosmos DB

Item → Delete

AI-generated

Summary

Delete a Cosmos DB item from the selected container using its item ID and exact partition key. Choose a database and container, then select the item and partition key from the lists or enter them by ID/value; authenticate with a master key or Microsoft Entra ID, with an optional custom endpoint and bearer token override.

Inputs

  • Authentication Type — Choose Master Key (default) or Microsoft Entra ID (Azure AD).
  • Database Name or ID (required) — Database containing the item; choose from the list or provide an ID or expression.
  • Container Name or ID (required) — Container containing the item; choose from the list or provide an ID or expression.
  • Item (required) — Item ID to delete; select from the list or provide an ID or expression.
  • Partition Key (required) — Exact partition key value for the item; select from the list or provide a value.
  • Use Dev Override (Custom Endpoint + Token) — When enabled, supply a Cosmos DB account endpoint and bearer access token instead of relying on the configured authentication credentials.
  • Custom Endpoint — Cosmos DB account endpoint URL, shown when Dev Override is enabled.
  • Custom Access Token — Bearer token scoped to https://cosmos.azure.com/, shown when Dev Override is enabled; expressions are supported.

Output shape

One output item per input item processed, with a JSON object containing the deleted item’s id, partitionKey, statusCode, and deleted flag.

The deleted flag is true when Cosmos DB returns a 2xx status code. The node requires both the item ID and exact partition key. With Continue On Fail enabled, errors are returned as {"error":"..."} for the affected input item.

Links

Discussion