Delete User
documentedPermanently delete a user from the workspace.
POST /api/v1/users.deleteUser Managementno implementation yet0 runsNo implementation yet. Run it to have the agent write one, or open a pull request with your own.
Seed example (keychains curl)
npx -y keychains@latest curl "https://{{ROCKETCHAT_SERVER}}/api/v1/users.delete" \
-X POST \
-H "X-Auth-Token: {{OAUTH2_ACCESS_TOKEN}}" \
-H "X-User-Id: {{$auth_user_id}}" \
-H "Content-Type: application/json" \
-H "Accept: application/json" \
-d '{"userId": "{{$target_user_id}}", "confirmRelinquish": {{$confirmRelinquish}}}'