Directus (flagbit) icon

Directus (flagbit)

Consume Directus API

Item → Delete

AI-generated

Overview

This node deletes an item from a specified collection in a Directus database. It is useful for scenarios where you need to remove specific records by their unique ID from a collection, such as deleting outdated or incorrect data entries.

Use Case Examples

  1. Deleting a user record from a 'users' collection by specifying the user ID.
  2. Removing a product entry from an 'inventory' collection based on its unique ID.

Properties

Name Meaning
ID The unique identifier of the item to be deleted from the collection.
Collection Name The unique name of the parent collection from which the item will be deleted.

Output

JSON

  • success - Indicates whether the deletion was successful (true or false).
  • id - The ID of the deleted item.

Dependencies

  • Requires connection to a Directus API instance with appropriate authentication credentials.

Troubleshooting

  • Ensure the provided ID exists in the specified collection; otherwise, the deletion will fail.
  • Verify that the collection name is correct and accessible with the current API credentials.
  • Check API permissions to confirm the user has rights to delete items in the collection.

Links

Discussion