{
  "topic": "delete",
  "section": {
    "n": 5,
    "name": "Manage"
  },
  "title": "Delete an app",
  "covers": "Removing an app forever, with no way back",
  "summary": "When the person asks you to remove an app, move it to the Trash instead (see trash): that can be undone for 30 days. Delete only when they ask for it to be gone forever. Deletes the app with its deploys, env vars, stored files, domains and Showcase listing. Its name becomes free for anyone to take. There is no backup and no undo. If it had a custom domain, the person can remove that DNS record afterwards.",
  "done_when": "The delete call answered 204. A status check for that name then answers not_deployed, or 404 not_found when you send a token: either means it is gone.",
  "available": true,
  "who": {
    "connector": "app_danger_zone · delete_app (with confirmAppName)",
    "api": "DELETE https://ship.embarko.ai/api/apps/{app-name}",
    "dashboard": "https://embarko.ai/app",
    "needs_human": "Always confirm, naming the app."
  },
  "steps": {
    "connector": [
      "Confirm with the person by name. Call app_danger_zone { action: \"delete_app\", appName, confirmAppName } with confirmAppName equal to appName."
    ],
    "http_api": [
      "Confirm with the person. DELETE https://ship.embarko.ai/api/apps/{app-name} with {\"confirmAppName\": \"{app-name}\"} and the token. 204 means deleted."
    ]
  },
  "errors": [
    {
      "code": "confirmation_required",
      "status": 400,
      "retry": "No",
      "do": "confirmAppName missing or different. Nothing was deleted."
    },
    {
      "code": "storage_cleanup_failed",
      "status": 502,
      "retry": "Yes",
      "do": "Its stored files could not be removed, so nothing was deleted. Retry after a minute."
    },
    {
      "code": "permission_denied",
      "status": 403,
      "retry": "No",
      "do": "The person who made this token is not allowed to do this. The reply names the permission and their access to the app (or their role). Nothing changed. Tell the person (say_to_user.no_permission); do not try another way round it."
    }
  ],
  "say_to_user": {
    "confirm": "This deletes {app} for good: its deploys, settings, stored files, custom domains and Showcase listing. There is no undo, and the name becomes free for anyone. Delete it?",
    "done": "{app} is deleted."
  },
  "prerequisites": {
    "read_first": "https://embarko.ai/docs/prerequisites",
    "user": "The person is usually not a developer. They want to know if the app is live, not how.",
    "talk": "Reply in 1-3 short plain sentences: what happened, and what the person needs to do only if something is needed. Do not show commands, API names, tokens, headers or logs, or describe the steps you took, unless the person asks for technical details. If the person is clearly a developer (uses technical terms, asks what you ran), talk to them that way for the rest of the conversation. Never show a token. Never invent a link, name or code: use only what Embarko's replies, this guide or the person give you.",
    "route": "Connector first if it is in your tools, then the HTTP API, then the upload page as a last resort.",
    "domains": "ship.embarko.ai (API), embarko.ai (website), {app-name}.embarko.app (apps): all Embarko.",
    "requires": [
      {
        "topic": "claim",
        "why": "Over HTTP the app must be claimed first; connector apps already are",
        "url": "https://embarko.ai/docs/claim",
        "only": "over HTTP only"
      }
    ]
  },
  "next": "Only on an explicit yes.",
  "related": [
    {
      "topic": "trash",
      "why": "Removing it with 30 days to change their mind",
      "url": "https://embarko.ai/docs/trash"
    },
    {
      "topic": "rollback",
      "why": "If the person only wants the old version back",
      "url": "https://embarko.ai/docs/rollback"
    }
  ],
  "links": {
    "delete": "https://ship.embarko.ai/api/apps/{app-name}"
  },
  "url": "https://embarko.ai/docs/delete",
  "contents": "https://embarko.ai/docs",
  "version": "2026-11-24"
}