Skip to content
Last updated

Soft delete a single organization member. Cannot delete the organization owner.

DELETE/v1/organizations/{organization_id}/users/{user_id}/delete

organization_id string required

Organization ID

user_id string required

User ID (usr_...) or OrganizationUser ID (orgusr_...) of the member to delete

Returns

Returns 204 No Content on success.

Notes

  • Creates an audit log entry
  • Organization owner cannot be deleted
  • Member can be restored later using the restore endpoint

Authorization

Requires Admin or Owner role.

Bash
curl -X DELETE https://api.aitronos.com/v1/organizations/org_abc123/users/usr_xyz789/delete \
  -H "X-API-Key: $FREDDY_API_KEY"

Response:

(empty response body)