Actions109
- Activity Actions
- Assets Actions
- Authentication Actions
- Collections Actions
- Extensions Actions
- Fields Actions
- Files Actions
- Folders Actions
- Items Actions
- Permissions Actions
- Presets Actions
- Relations Actions
- Revisions Actions
- Roles Actions
- Settings Actions
- Users Actions
- Utilities Actions
- Webhooks Actions
Overview
This node integrates with the Directus API to manage various resources, including folders. Specifically, for the Folders resource and the Delete operation, it allows users to delete a folder by its unique ID. This is useful in scenarios where you need to programmatically remove folders from your Directus-managed storage or content structure.
Practical examples include:
- Cleaning up unused or obsolete folders in a media library.
- Automating folder management workflows where folders are deleted after certain conditions are met.
- Integrating folder deletion as part of larger data lifecycle automation within Directus.
Properties
| Name | Meaning |
|---|---|
| ID | The unique identifier (UUID) of the folder to be deleted. This is required to specify which folder should be removed. |
Output
The output JSON contains the response from the Directus API after attempting to delete the specified folder. Typically, this will include confirmation of deletion or details about the deleted folder. The exact structure depends on the Directus API's response but generally includes status information and metadata related to the deleted folder.
No binary data output is produced by this operation.
Dependencies
- Requires an active connection to a Directus instance via an API key credential.
- The node uses the Directus REST API endpoints to perform operations.
- Proper permissions must be granted to the API key used, allowing folder deletion.
- No additional external dependencies beyond the Directus API and n8n environment.
Troubleshooting
Common Issues:
- Invalid or missing folder ID: Ensure the ID provided corresponds to an existing folder.
- Insufficient permissions: The API key must have rights to delete folders.
- Network or connectivity issues with the Directus server.
Error Messages:
- "Folder not found": The specified ID does not exist; verify the folder ID.
- "Unauthorized" or "Forbidden": The API key lacks permission; check credentials and roles.
- "Invalid ID format": The ID must be a valid UUID string.
Resolution Tips:
- Double-check the folder ID input.
- Verify API credentials and their permissions.
- Test connectivity to the Directus API endpoint outside n8n if needed.
Links and References
This summary focuses solely on the Folders > Delete operation as requested, based on static analysis of the provided source code and property definitions.