Destroy a website, app, agent, or skill
destroy_servicePermanently destroy a website, app, agent, or skill. This cannot be undone, so confirm with the user first. Destroying a website or app stops serving it. Destroying an app stops it and removes its releases and source; its resources are detached and kept, because they belong to the organization and may serve other apps, and the answer names them for destroy_resource. Destroying an agent stops it and removes its channels, agent-scoped connectors, drains, mailboxes, releases, and source repository; none of those can be recovered. Its sessions and memories remain, and once the agent is gone no MCP tool can remove them (list_sessions and list_memories find them, paging with cursor), so call destroy_session and destroy_memory first if they should go. The architect agent cannot be destroyed. Destroying a skill removes it from list_skills and frees its name; it is refused while any agent has the skill attached, and the refusal names detach_skill, which frees each one. Destroying a skill under a well-known name, such as governance or design-system, brings back Valet's default for every agent in the organization. A name that no longer exists answers that nothing was destroyed. Identify the service by name, which requires connecting a Valet account.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"name": "<name>"
},
"name": "destroy_service"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| kind | No | The kind you believe the named service is, as a safeguard against destroying the wrong thing. Omit to destroy whatever the name holds. | |
| name | Yes | The website's, app's, agent's, or skill's name to destroy. | |
| org_name | No | The Valet organization it belongs to. Omit to use the organization the account joined first. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| org | Yes | Name of the Valet organization the call acted in. | |
| url | No | Address that has stopped serving, read before the takedown. Absent for a skill, a service that had no address, an agent in an organization whose agent URLs are not turned on, and when already_gone is true. | |
| kind | Yes | Kind destroyed: site, app, agent, or skill. When already_gone is true, the kind passed in the call, or service if none was passed. | |
| name | Yes | Name of the service that was destroyed, or that was already gone. | |
| already_gone | No | True when no service held the name before the call, so nothing was destroyed. A repeat of a destroy returns this. Absent otherwise. | |
| restored_default | No | True when the destroyed skill replaced a built-in skill, so Valet's default answers under its name again for every agent in the organization. Absent otherwise. | |
| detached_resources | No | Names of the resources an app's takedown detached. Each still exists with its data; pass a name to destroy_resource to delete it. Absent for other kinds and for an app with none. |