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.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"account": "<account>",
"database": "<database>",
"container": "<container>",
"item_id": "<item_id>",
"partition_key": "<partition_key>"
},
"name": "cosmosdb_delete_item"
}
}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 |