Directus (flagbit) icon

Directus (flagbit)

Consume Directus API

Field → Delete

AI-generated

Overview

This node deletes a specific field from a collection in a Directus database. It is useful for managing the schema of collections by removing fields that are no longer needed or relevant. For example, if a field in an articles collection is obsolete, this node can be used to delete it to keep the data structure clean and up to date.

Use Case Examples

  1. Deleting a 'summary' field from the 'articles' collection to remove outdated metadata.
  2. Removing a 'temporary_notes' field from a 'projects' collection after project completion.

Properties

Name Meaning
Field Name The unique name of the field to be deleted within the specified collection.
Collection Name The name of the collection from which the field will be deleted.

Output

JSON

  • success - Indicates whether the field deletion was successful (true or false).
  • message - Additional information or confirmation message about the deletion operation.

Dependencies

  • Requires API authentication to the Directus instance to perform field deletion.

Troubleshooting

  • Ensure the field name exists in the specified collection; otherwise, the deletion will fail.
  • Verify that the API credentials have sufficient permissions to modify the collection schema.
  • Common error messages include 'Field not found' if the field does not exist, or 'Permission denied' if the user lacks rights to delete fields.

Links

Discussion