Actions111
- Item Actions
- Webhook Actions
- Collection Actions
- File Actions
- Activity Actions
- Asset Actions
- Authentication Actions
- Extension Actions
- Field Actions
- Folder Actions
- Permission Actions
- Preset Actions
- Relation Actions
- Revision Actions
- Role Actions
- Setting Actions
- User Actions
- Utility Actions
Overview
This node is designed to delete a specific role in a Directus system by its unique identifier. It is useful in scenarios where you need to automate the management of user roles, such as removing obsolete or unauthorized roles from your Directus instance. For example, you might use this node in an n8n workflow that cleans up roles after a user offboarding process.
Properties
| Name | Meaning |
|---|---|
| ID | Primary key of the role. This is a required string value representing the unique identifier (e.g., c86c2761-65d3-43c3-897f-6f74ad6a5bd7) of the role to be deleted. |
Output
The output will typically be a JSON object indicating the result of the deletion operation. The structure may include fields such as:
- A confirmation of successful deletion (e.g., a status message or the ID of the deleted role).
- If the operation fails, an error message describing the issue.
Dependencies
- Requires access to a Directus instance.
- May require authentication credentials (such as an API key or token) configured in n8n for the Directus node.
Troubleshooting
- Missing or Invalid ID: If the "ID" property is missing or does not correspond to an existing role, the node may throw an error indicating that the role could not be found or deleted.
- Authentication Errors: If the Directus credentials are incorrect or missing, you may receive authentication or authorization errors.
- Network Issues: Connectivity problems with the Directus server can cause timeouts or connection errors.