Directus (flagbit) icon

Directus (flagbit)

Consume Directus API

Permission → Delete Multiple

AI-generated

Overview

This node operation deletes multiple permissions in a Directus system based on an array of primary keys provided by the user. It is useful for batch removal of permissions, such as when cleaning up access controls or revoking multiple permissions at once.

Use Case Examples

  1. Deleting permissions with primary keys [34, 64] to revoke access rights in bulk.
  2. Removing multiple outdated or unused permissions from the system efficiently.

Properties

Name Meaning
Keys (JSON) An array of permission primary keys to be deleted in bulk.

Output

JSON

  • deletedCount - The number of permissions successfully deleted.
  • status - The status of the delete operation, e.g., success or failure.

Dependencies

  • Requires connection to a Directus API instance with appropriate authentication credentials.

Troubleshooting

  • Ensure the 'Keys (JSON)' input is a valid JSON array of primary keys; invalid JSON will cause errors.
  • Verify that the API credentials have sufficient permissions to delete permissions in Directus.
  • If some keys do not exist, the operation may partially succeed; check the returned status and deleted count for confirmation.

Links

Discussion