Data Loss Warning: This operation permanently deletes all documents in the selection.
Syntax
Arguments
No arguments.Optargs
No optional arguments.Returns
Information about the operation.
Behavior
- Deletes documents from the selection (single document, filtered results, etc.).
- Can delete multiple documents when applied to a selection that matches multiple documents.
- If no documents match the selection, no error is thrown and
deletedcount will be 0. - Deleted documents are permanently removed.
Notes & Caveats
- Delete operations are irreversible - make sure you have backups if needed.
Example
Delete a single document by ID
Delete a specific user by their primary key.Delete multiple documents with filter
Delete all inactive users from the system.Related Functions
get- Get a document by primary keygetAll- Get multiple documentsfilter- Filter documents for deletioninsert- Insert new documentsupdate- Update existing documentstable- Reference a table
Found a typo? Or maybe a broken link? RuloDB is open-source, help us fix it!

