Directus (flagbit) icon

Directus (flagbit)

Consume Directus API

Role → Delete

AI-generated

Overview

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

  1. Deleting a role by its ID to revoke associated permissions from users.
  2. 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 successful
  • message - 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

Discussion