Permanently delete an API and revoke all keys associated with it.
Copy
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` fieldconsole.error(error.message);return;}console.log(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` fieldconsole.error(error.message);return;}console.log(result);
Copy
{"result":{}}
Assistant
Responses are generated using AI and may contain mistakes.