1. Docs
  2. API Reference
  3. Delete an Application

Delete an Application

DELETE/portal/v1/accounts/{accountSlug}/applications/{appSlug}

Authentication

  • Bearer Token Authorization

    JWT access token

Code samples

cURLJavaScriptPythonGo
curl -X DELETE "https://api.canopy.dev/portal/v1/accounts/{accountSlug}/applications/{appSlug}" \
  -H "Authorization: Bearer $CANOPY_TOKEN"

Responses

204 Application deleted along with every Environment, role, permission, assignment, OAuth client, webhook, identity invite, and audit row scoped under it
400 Cannot delete the last Application in this Account — an Account must have at least one Application at all times
401 Invalid or expired token
403 This token is not authorized for this endpoint (wrong principal type — e.g., admin token on identity-only endpoint, or vice versa)
404 Application not found
On this page

Related endpoints

GETGet the current Application
PATCHUpdate the Application name or settings
PUTSet the App's default Environment
GETGet the admin's resume-state for this Application
PUTUpdate the admin's resume-state for this Application