Directus (flagbit) icon

Directus (flagbit)

Consume Directus API

User → Delete

AI-generated

Overview

This node deletes a user in the Directus system based on the provided user ID. It is useful in scenarios where you need to programmatically remove a user from the database, such as managing user accounts or cleaning up inactive users.

Use Case Examples

  1. Deleting a user by specifying their unique ID to revoke access and remove their data.
  2. Automating user management workflows by removing users who no longer need access.

Properties

Name Meaning
ID Primary key of the user to be deleted

Output

JSON

  • success - Indicates whether the user deletion was successful
  • message - Additional information or error message related to the deletion operation

Dependencies

  • Requires an API key credential for authentication with the Directus API

Troubleshooting

  • Ensure the provided user ID is valid and exists in the system to avoid errors.
  • Check API authentication credentials if the deletion request fails due to authorization issues.
  • Handle error messages returned by the API to understand if the user could not be deleted due to dependencies or permissions.

Links

Discussion