Directus (flagbit) icon

Directus (flagbit)

Consume Directus API

Preset → Delete Multiple

AI-generated

Overview

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

  1. Deleting multiple presets by providing an array of their primary keys to efficiently remove them in one operation.
  2. 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

Discussion