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
Permission → Delete Multiple
AI-generatedOverview
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
- Deleting permissions with primary keys [34, 64] to revoke access rights in bulk.
- 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
- Directus Permissions API - Official documentation for managing permissions in Directus, including deletion.