Official Libraries
- @unkey/api
- Overview
- Keys
- APIs
- Identities
- Ratelimits
- Migrations
- Permissions
- @unkey/ratelimit
- @unkey/nextjs
- @unkey/hono
- @unkey/cache
- unkey-go
- unkey.py
Community Libraries
- Elixir
- Nuxt
- Rust
- Springboot
Identities
Delete An Identity
Delete an identity. This will not revoke the keys associated with the identity.
Copy
const { result, error } = await unkey.identities.delete({
identityId: "id_1234"
});
if (error) {
// handle potential network or bad request error
// a link to our docs will be in the `error.docs` field
console.error(error.message);
return;
}
console.log(result);
Copy
{
"result": {}
}
Copy
const { result, error } = await unkey.identities.delete({
identityId: "id_1234"
});
if (error) {
// handle potential network or bad request error
// a link to our docs will be in the `error.docs` field
console.error(error.message);
return;
}
console.log(result);
Copy
{
"result": {}
}
Request
The ID of the identity you want to delete.
Response
result
{}
Was this page helpful?
Copy
const { result, error } = await unkey.identities.delete({
identityId: "id_1234"
});
if (error) {
// handle potential network or bad request error
// a link to our docs will be in the `error.docs` field
console.error(error.message);
return;
}
console.log(result);
Copy
{
"result": {}
}
Assistant
Responses are generated using AI and may contain mistakes.