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
Role → Delete
AI-generatedOverview
This node deletes a role in the Directus system based on the provided role ID. It is useful for managing user roles by removing roles that are no longer needed or valid. For example, an administrator can use this node to delete a specific role by specifying its unique ID.
Use Case Examples
- Deleting a role by its ID to revoke associated permissions from users.
- Automating role cleanup in a user management workflow.
Properties
| Name | Meaning |
|---|---|
| ID | Primary key of the role to be deleted |
Output
JSON
success- Indicates whether the role deletion was successfulmessage- Additional information or confirmation message about the deletion
Dependencies
- Requires an API key credential for authentication with the Directus API.
Troubleshooting
- Ensure the provided role ID is correct and exists in the system to avoid errors.
- Check API authentication credentials if the node fails to connect or perform the deletion.
- Verify that the user or API key has sufficient permissions to delete roles in Directus.
Links
- Directus API Documentation - Delete Role - Official API documentation for deleting a role by ID in Directus.