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
User → Delete
AI-generatedOverview
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
- Deleting a user by specifying their unique ID to revoke access and remove their data.
- 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 successfulmessage- 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
- Directus API - Delete User - Official documentation for deleting a user via the Directus API