DELETE
CosmosDB NoSQL Plugin – Delete Action
Summary (SEO Meta Description):
The Delete Action of the CosmosDB NoSQL Plugin permanently removes documents from an Azure Cosmos DB NoSQL container.
Use it to automate cleanup tasks and maintain accurate, up-to-date data sets.
Overview
The Delete Action enables WeHub workflows to safely delete items from a Cosmos DB NoSQL container.
This is useful when data must be purged for compliance, lifecycle management, or to keep storage costs under control.
Typical Use Cases:
- Removing outdated or obsolete records
- Enforcing GDPR or HIPAA data-retention policies
- Cleaning up test data after QA or CI/CD runs
- Automating data lifecycle management in large datasets
⚙️ Configuration
| Field | Description | Type / Options | 
|---|---|---|
| Label | Custom name for the action | String | 
| Select connection | Choose or create a secure Azure Cosmos DB connection | Connection | 
| Partition Key | The partition key of the item to delete (leave blank to enable cross-partition delete) | String | 
| Container Name | Select the target Cosmos DB container where the document exists | Dropdown | 
| Inputs (Manual) | Provide input variables for identifying the document(s) to delete | Name + Type | 
| Schema | (Optional) Map and validate input schema or enable Truncate Fields for automatic trimming | Schema | 
FAQ
Q: Can I delete documents across all partitions?
A: Yes. Leave Partition Key blank to allow cross-partition deletion.
Q: Is the deletion permanent?
A: Yes. Once executed, documents are permanently removed from the container.
Q: Will WeHub log the deleted data?
A: No. WeHub only sends the delete request and never stores the document content.
Keywords: WeHub CosmosDB NoSQL Plugin, Delete Action, Azure Cosmos DB, Remove Documents, Cross-Partition Delete, Data Cleanup