Actions118
- Item Actions
- Activity Actions
- Asset Actions
- Authentication Actions
- Collection Actions
- Extension Actions
- Field Actions
- File Actions
- Folder Actions
- Permission Actions
- Preset Actions
- Relation Actions
- Revision Actions
- Role Actions
- Server Actions
- Setting Actions
- User Actions
- Utility Actions
- Webhook Actions
Preset → Delete Multiple
AI-generatedOverview
This node operation deletes multiple presets identified by their primary keys. It is useful in scenarios where bulk removal of preset entries is needed, such as cleaning up outdated or irrelevant presets in a system.
Use Case Examples
- Deleting multiple presets by providing an array of their primary keys to efficiently remove them in one operation.
- Bulk deletion of presets to maintain an organized and updated preset list.
Properties
| Name | Meaning |
|---|---|
| Keys (JSON) | An array of preset primary keys to specify which presets to delete. |
Output
JSON
deletedCount- The number of presets successfully deleted.
Dependencies
- Requires an API key credential for authentication to the Directus API.
Troubleshooting
- Ensure the 'Keys (JSON)' input is a valid JSON array of primary keys; invalid JSON or empty arrays will cause errors.
- Authentication errors may occur if the API key credential is missing or invalid; verify credentials are correctly configured.
- If some keys do not exist, the node may delete only existing presets and ignore non-existent keys without error, but verify the output for confirmation.
Links
- Directus API - Delete Multiple Items - Official documentation for deleting multiple items in Directus, relevant for understanding the API call this node makes.