Official Libraries
- @unkey/api
- @unkey/ratelimit
- @unkey/nextjs
- @unkey/hono
- @unkey/cache
- unkey-go
- unkey.py
Community Libraries
- Elixir
- Nuxt
- Rust
- Springboot
APIs
Delete
Permanently delete an API and revoke all keys associated with it.
const { result, error } = await unkey.apis.delete({ apiId: "api_123" });
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);
{
"result": {}
}
const { result, error } = await unkey.apis.delete({ apiId: "api_123" });
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);
{
"result": {}
}
Request
The id of the api to be deleted.
Response
result
{}
Was this page helpful?
const { result, error } = await unkey.apis.delete({ apiId: "api_123" });
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);
{
"result": {}
}
Assistant
Responses are generated using AI and may contain mistakes.