Delete user
DELETE
/public/user/{user_id}
const url = 'https://user.userguiding.com/public/user/example';const options = {method: 'DELETE', headers: {'UG-API-KEY': '<UG-API-KEY>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”user_id
required
User Id
string
Your own ID for the user, the same one you pass to identify in the SDK.
Responses
Section titled “Responses”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>
ValidationErrorobject
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.
Headers
Section titled “Headers”Retry-After
integer
Seconds to wait before sending another request.