Skip to content
Charming Docs
Esc
navigateopen⌘Jpreview
On this page

Delete App

Permanently delete a Charming app the caller owns, optionally also purging its stored data.

MCP name: delete_app

Tool contract

{
  "annotations": {
    "destructiveHint": true,
    "openWorldHint": true,
    "readOnlyHint": false,
    "title": "Delete App"
  },
  "description": "Permanently delete a Charming app the caller owns, optionally also purging its stored data. Use this to remove an app the caller no longer wants. Deletion is irreversible and requires confirmation: the host is asked to show a confirmation prompt, and when it cannot, the call fails closed until re-invoked with confirm: true.",
  "execution": {
    "taskSupport": "forbidden"
  },
  "inputSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "properties": {
      "app_id": {
        "description": "The app ID (UUID) to delete",
        "format": "uuid",
        "pattern": "^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$",
        "type": "string"
      },
      "confirm": {
        "description": "Explicit confirmation that the caller intends to permanently delete this app. Fallback for hosts that cannot show a confirmation prompt: set true only after the deletion has been confirmed with the user through another channel. On hosts that do support a prompt, the prompt is authoritative and this field is ignored.",
        "type": "boolean"
      },
      "purge_storage": {
        "description": "Also delete stored app data",
        "type": "boolean"
      }
    },
    "required": [
      "app_id"
    ],
    "type": "object"
  },
  "name": "delete_app",
  "outputSchema": {
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "additionalProperties": false,
    "properties": {
      "cancelled": {
        "description": "Set to true when the user declined the elicitation confirmation prompt.",
        "type": "boolean"
      },
      "deleted": {
        "description": "True if the app was deleted, false if deletion was cancelled by the user.",
        "type": "boolean"
      },
      "id": {
        "description": "UUID of the targeted app.",
        "type": "string"
      },
      "ok": {
        "const": true,
        "description": "Indicates success. Errors arrive as content with isError:true.",
        "type": "boolean"
      }
    },
    "required": [
      "ok",
      "id",
      "deleted"
    ],
    "type": "object"
  }
}

Was this page helpful?