Skip to main content

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

FieldDescriptionType / Options
LabelCustom name for the actionString
Select connectionChoose or create a secure Azure Cosmos DB connectionConnection
Partition KeyThe partition key of the item to delete (leave blank to enable cross-partition delete)String
Container NameSelect the target Cosmos DB container where the document existsDropdown
Inputs (Manual)Provide input variables for identifying the document(s) to deleteName + Type
Schema(Optional) Map and validate input schema or enable Truncate Fields for automatic trimmingSchema

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