Delete a user

DELETE /users/{userId}

By default, Klaro access is revoked after 30 days. You can optionally supply a remaining_days query parameter to modify this duration.

Path parameters

  • userId string Required

    The ID of the user to delete.

Query parameters

  • remaining_days integer

    Optional parameter to specify the remaining days.

Responses

  • 204

    User deleted successfully. No Content returned.

  • 401 application/json

    Unauthorized – JWT is missing, malformed, or invalid.

    Hide response attributes Show response attributes object
    • statusCode integer
    • message string
    • error string
  • 429 application/json

    Too Many Requests – Rate limit exceeded.

    Hide response attributes Show response attributes object
    • error string
    • retryAfter integer
  • 404 application/json

    User not found.

    Hide response attributes Show response attributes object
    • statusCode integer
    • timestamp string(date-time)
    • path string
    • message string
DELETE /users/{userId}
curl \
 --request DELETE 'https://api.goklaro.fr/api/public/users/{userId}' \
 --header "Authorization: Bearer $ACCESS_TOKEN"
Response examples (401)
{
  "error": "Unauthorized",
  "message": "Invalid token.",
  "statusCode": 401
}
Response examples (429)
{
  "error": "Rate limit exceeded",
  "retryAfter": 60000
}
Response examples (404)
{
  "path": "/api/public/users/{{userId}}",
  "message": "Not Found",
  "timestamp": "2025-03-05T11:42:24.720Z",
  "statusCode": 404
}