Skip to main content

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

FieldDescriptionType / Options
LabelCustom name for the actionString
Document IDThe unique _id of the MongoDB document to deleteString
Collection NameName of the MongoDB collection containing the documentString
Select connectionChoose or create a MongoDB database connectionConnection

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