Remove
MongoDB Plugin – Remove Action
Summary (SEO Meta Description):
The Remove Action of the MongoDB Plugin deletes one or more documents from a specified collection.
It allows workflows to clean up or manage stored data by removing documents based on their unique ID.
Overview
The Remove Action enables your workflow to delete documents from a MongoDB collection by specifying a Document ID.
This is useful for managing outdated records, handling data lifecycle tasks, or removing invalid entries.
Typical Use Cases:
- Delete a user record after account deactivation
- Remove expired session or token documents
- Clean up temporary or test data from a collection
- Purge old event logs to save storage space
⚙️ Configuration
| Field | Description | Type / Options | 
|---|---|---|
| Label | Custom name for the action | String | 
| Document ID | The unique _idof the MongoDB document to delete | String | 
| Collection Name | Name of the MongoDB collection containing the document | String | 
| Select connection | Choose or create a MongoDB database connection | Connection | 
FAQ
Q: What happens if the document ID does not exist?
A: The action completes without error, but no document is removed.
Q: Can I delete multiple documents at once?
A: The Remove Action is designed for deletion by a single Document ID.
For bulk deletion, use the Query Action with appropriate logic or implement multiple Remove steps.
Q: Is the delete operation permanent?
A: Yes. Once executed, the document cannot be recovered unless you maintain a backup.
Keywords: WeHub MongoDB Plugin, MongoDB Remove Action, Delete Document, NoSQL Workflow Automation