Directus (flagbit) icon

Directus (flagbit)

Consume Directus API

Preset → Delete

AI-generated

Overview

This node performs the deletion of a preset resource by its primary key (ID). It is useful in scenarios where a user needs to remove a specific preset configuration or data entry from a system or database. For example, deleting a saved preset in a content management system or application settings.

Use Case Examples

  1. Deleting a preset by specifying its unique ID to remove outdated or unwanted configurations.
  2. Automating cleanup of presets in bulk workflows by iterating over IDs to delete them.

Properties

Name Meaning
ID Primary key of the preset to be deleted

Output

JSON

  • success - Indicates whether the deletion was successful
  • id - The ID of the deleted preset

Dependencies

  • Requires API authentication to access and delete the preset resource.

Troubleshooting

  • If the ID is missing or invalid, the node will throw an error indicating the preset could not be found or deleted.
  • Ensure the API credentials have sufficient permissions to delete presets.
  • Network or API errors may cause the deletion to fail; verify connectivity and API status.

Discussion