Skip to content

Delete user

DELETE
/public/user/{user_id}
curl --request DELETE \
--url https://user.userguiding.com/public/user/example \
--header 'UG-API-KEY: <UG-API-KEY>'

Permanently deletes the user with their attributes and their history with your UserGuiding content. Events the user already sent stay in your event history.

user_id
required
User Id
string

Your own ID for the user, the same one you pass to identify in the SDK.

The user was deleted.

No user has this ID.

Media typeapplication/json

Example

{
"detail": "A user with provided id does not exist."
}

The request is invalid. detail lists each problem.

Media typeapplication/json
HTTPValidationError
object
detail
Detail
Array<object>
ValidationError
object
loc
required
Location
Array
msg
required
Message
string
type
required
Error Type
string

Example generated

{
"detail": [
{
"loc": [
"example"
],
"msg": "example",
"type": "example"
}
]
}

Your project used up its rate limit: bursts of up to 2,000 requests, refilled at 20 requests per second.

Retry-After
integer

Seconds to wait before sending another request.