Directus (flagbit) icon

Directus (flagbit)

Consume Directus API

Permission → Delete

AI-generated

Overview

This node performs the deletion of a permission rule in the Directus system. It is useful in scenarios where you need to programmatically remove access control rules based on their unique identifier, such as cleaning up outdated or incorrect permissions.

Use Case Examples

  1. Deleting a permission rule by specifying its ID to revoke access rights.
  2. Automating permission management by removing rules that are no longer needed.

Properties

Name Meaning
ID Primary key of the permission rule to be deleted

Output

JSON

  • success - Indicates whether the deletion was successful
  • id - The ID of the deleted permission rule

Dependencies

  • Requires API authentication to the Directus system to perform permission deletions.

Troubleshooting

  • Ensure the provided ID exists and is correct; otherwise, the deletion will fail.
  • Check API authentication credentials if the node cannot connect or perform the deletion.
  • Common error: 'Permission not found' indicates the ID does not correspond to any existing permission rule.

Links

Discussion