Delete an app API Reference
const url = 'https://api.kupe.cloud/api/v1/tenants/example/apps/example';const options = { method: 'DELETE', headers: {Authorization: '<Authorization>', 'Content-Type': 'application/json'}, body: '{"confirm":"example","environments":["example"]}'};
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.kupe.cloud/api/v1/tenants/example/apps/example \ --header 'Authorization: <Authorization>' \ --header 'Content-Type: application/json' \ --data '{ "confirm": "example", "environments": [ "example" ] }'Delete the app and its environments, including their namespaces and everything in them. Vault entries and clusters remain. Turn off protection on the app and all environments first. Independent secret deliveries or service bindings into its environments’ namespaces must be removed first. Repeat the app name in confirm and send the environment names you reviewed in environments. Only environments named in the review are deleted. Any other environment is kept. If the app has already gone, an administrator must remove that environment. Deletion is asynchronous.
Authorizations
Section titled “ Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “ Path Parameters ”Tenant name
App name
Header Parameters
Section titled “ Header Parameters ”ETag from the app or environment read
Request Body
Section titled “ Request Body ”Request
object
Repeat the app name, or the environment name for an environment delete.
App deletion only: the exact environment names reviewed, when supplied.
Example generated
{ "confirm": "example", "environments": [ "example" ]}Responses
Section titled “ Responses ”Accepted
object
object
Always “Terminating” on acceptance; GET /tenants/{tenant} reports the same phase until the tenant is gone (then 404).
Example
{ "name": "acme", "status": { "phase": "Terminating" }}Bad Request
object
Example generated
{ "code": "example", "error": "example", "field": "example", "message": "example", "severity": "example"}Unauthorized
object
Example generated
{ "code": "example", "error": "example", "field": "example", "message": "example", "severity": "example"}Forbidden
object
Example generated
{ "code": "example", "error": "example", "field": "example", "message": "example", "severity": "example"}Not Found
object
Example generated
{ "code": "example", "error": "example", "field": "example", "message": "example", "severity": "example"}Conflict
object
Example generated
{ "code": "example", "error": "example", "field": "example", "message": "example", "severity": "example"}Precondition Failed
object
Example generated
{ "code": "example", "error": "example", "field": "example", "message": "example", "severity": "example"}Too Many Requests
object
Example generated
{ "code": "example", "error": "example", "field": "example", "message": "example", "severity": "example"}object
Example generated
{ "code": "example", "error": "example", "field": "example", "message": "example", "severity": "example"}