Directus (flagbit) icon

Directus (flagbit)

Consume Directus API

User → Delete Multiple

AI-generated

Overview

This node operation deletes multiple users based on an array of user primary keys provided as input. It is useful in scenarios where bulk user removal is needed, such as cleaning up inactive or unauthorized accounts in a system.

Use Case Examples

  1. Deleting multiple users by specifying their unique IDs in a JSON array.
  2. Bulk removal of users from a database or system using their primary keys.

Properties

Name Meaning
Keys (JSON) An array of user primary keys to specify which users to delete.

Output

JSON

  • deletedUserIds - Array of user IDs that were successfully deleted.
  • status - Status of the delete operation, e.g., success or failure.

Dependencies

  • Requires API authentication credentials to access the user management system.

Troubleshooting

  • Ensure the input JSON array of keys is correctly formatted and contains valid user IDs.
  • Check API credentials and permissions to confirm the node has rights to delete users.
  • Common errors include invalid keys, insufficient permissions, or network issues. Verify these to resolve errors.

Discussion