Delete an application

View as Markdown

Permanently deletes the application, its deployments, imported source, secrets, and attached domains.

Full description

Permanently deletes the application, its deployments, imported source, secrets, and attached domains. This action cannot be undone. Returns 204 No Content on success. For MHWP applications, deletion is asynchronous. The 204 response starts the teardown, and GET /apps/{appId} returns the application with status DELETING while it runs. Once removal is complete, GET /apps/{appId} returns 404. A repeat DELETE during the teardown also returns 204 and starts nothing new. While another write holds the application's lock, the request answers 503 with details[].issue UPSTREAM_UNAVAILABLE and Retry-After: 5; retry after that delay.

DELETE
/apps/{appId}

Authorization

bearerAuth
AuthorizationBearer <token>

Personal Access Token (PAT). Generate one from the developer dashboard. Pass as: Authorization: Bearer <token>.

In: header

Path Parameters

appId*string

Application identifier in {PRODUCT}-{id} form. The prefix is the application type in upper case — an upper-case letter followed by any number of upper-case letters, digits, or underscores — then a hyphen, then the identifier. For NODEJS, the suffix is a 10-character nanoid. Example: NODEJS-aBcDeFgHiJ. For MHWP, the suffix is a 10-character nanoid of lower-case letters and digits only. Example: MHWP-a1b2c3d4e5.

Match^[A-Z][A-Z0-9_]*-[A-Za-z0-9_-]+$

Header Parameters

traceparent?string

W3C Trace Context identifier for this request. Clients should send a traceparent on every request so the trace can be correlated across services. See https://www.w3.org/TR/trace-context/ for the format.

Match^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://example.com/apps/string"
Empty

Agent & Automation Notes

Scopeshosting.application:read, hosting.application:create, hosting.application:update, hosting.application:delete, hosting.source:write, hosting.deployment:execute, hosting.secret:write, hosting.log:read
Rate limit10–120 req/min per client IP depending on operation
On failureCreate app returns 202 with a job. Poll GET /app-operations/{operationId} until app is ready. Upload source and deployments return 202 with an operation ID. Poll the matching status endpoint until complete. DELETE /apps/{appId} returns 204; removal can continue in the background, after which GET returns 404. GET operations are safe to retry. Do not resubmit writes without checking current state.

Last updated on

How is this guide?