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
Folder → Delete
AI-generatedOverview
This node deletes a folder object in the Directus system based on a unique folder ID provided as input. It is useful for scenarios where you need to programmatically remove folders, such as cleaning up unused directories or managing folder lifecycle in an automated workflow.
Use Case Examples
- Deleting a folder by specifying its unique ID to remove obsolete or empty folders from the system.
- Automating folder management by deleting folders that meet certain criteria in a batch process.
Properties
| Name | Meaning |
|---|---|
| ID | Unique ID of the folder object to be deleted |
Output
JSON
success- Indicates whether the folder deletion was successfulid- The unique ID of the folder that was deleted
Dependencies
- Requires an API key credential for authentication with the Directus API.
Troubleshooting
- Ensure the folder ID provided is valid and exists in the system; otherwise, the deletion will fail.
- Check API authentication credentials if the node returns authorization errors.
- If the folder is linked to other resources or has dependencies, deletion might be blocked; verify folder relationships before attempting deletion.
Links
- Directus API - Delete Folder - Official documentation for deleting folders using the Directus API.