Directus (flagbit) icon

Directus (flagbit)

Consume Directus API

Role → Delete Multiple

AI-generated

Overview

This node operation deletes multiple roles in a system by accepting an array of role primary keys. It is useful in scenarios where bulk removal of roles is needed, such as cleaning up unused or obsolete roles in a user management system.

Use Case Examples

  1. Deleting multiple user roles by providing their unique identifiers in a JSON array.
  2. Bulk removal of roles to maintain system security and organization.

Properties

Name Meaning
Keys (JSON) An array of role primary keys to be deleted

Output

JSON

  • deletedRoles - List of roles that were successfully deleted
  • failedDeletions - List of roles that could not be deleted, if any

Dependencies

  • Requires API authentication to the system managing roles, typically via an API key or token.

Troubleshooting

  • Ensure the provided keys are valid role identifiers; invalid keys will cause deletion failures.
  • Check API authentication credentials if the node fails to connect or authorize.
  • The JSON array must be properly formatted; malformed JSON will cause errors.

Discussion