installs_delete
DELETE
/installs/{id}
const url = 'https://api.canopyhq.dev/installs/example';const options = {method: 'DELETE', headers: {Authorization: 'Bearer <token>'}};
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://api.canopyhq.dev/installs/example \ --header 'Authorization: Bearer <token>'Authorizations
Section titled “Authorizations”Parameters
Section titled “Parameters”Path Parameters
Section titled “Path Parameters”id
required
Opaque; never the key, never anything the vendor chose.
string
The install to delete.
Responses
Section titled “Responses”The install and its key are revoked. The key now receives 401 and cannot open sessions. Session tokens live 15 minutes and are renewed with the install key. An open session keeps its landed config and its log, and keeps answering under its current token, but cannot renew once the install is gone: it ends when its token expires.
No console token, or one that did not verify.
Only an owner of the tenant may delete an install.
The tenant has no such install.