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
Field → Delete
AI-generatedOverview
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
- Deleting a 'summary' field from the 'articles' collection to remove outdated metadata.
- 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
- Directus API Fields Reference - Official documentation for managing fields in Directus collections via API.