cosmosdb_delete_item
Delete an item from a Cosmos DB container by providing its item ID and partition key. This action is permanent and cannot be undone.
Instructions
Delete an item from a Cosmos DB container.
THIS IS DESTRUCTIVE — the item cannot be recovered after deletion. Both item_id and partition_key are required.
key_env_var: name of the environment variable holding the Cosmos DB account key. If the variable is set, key-based auth is used; otherwise DefaultAzureCredential is used.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| account | Yes | ||
| database | Yes | ||
| container | Yes | ||
| item_id | Yes | ||
| partition_key | Yes | ||
| key_env_var | No | AZURE_COSMOS_KEY |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |