agent mcp delete (Developer Preview)

Delete an MCP server from the API Catalog.

This command is available as a developer preview. The command isn’t generally available unless or until Salesforce announces its general availability in documentation or in press releases or public statements. All commands, parameters, and other features are subject to change or deprecation at any time, with or without notice. Don’t implement functionality developed with these commands or tools.

Permanently removes an MCP (Model Context Protocol) server registration from the API Catalog, identified by its ID. By default you are prompted to confirm the deletion; pass –no-prompt to skip the confirmation (for example in scripts and CI).

Flag Name (Long)Flag Name (Short)Description
‑‑api‑versionN/AType: Value

Override the api version used for api requests made by this command
‑‑flags‑dirN/AType: Value

Import flag values from a directory.
‑‑jsonN/AType: Boolean

Format output as json.
‑‑mcp‑server‑id‑iType: Value
Required

ID of the MCP server to delete.
‑‑no‑promptN/AType: Boolean

Skip the confirmation prompt and delete the MCP server immediately.
‑‑target‑org‑oType: Value
Required

Username or alias of the target org. Not required if the target-org configuration variable is already set.

Delete an MCP server, confirming interactively:

Delete an MCP server without a confirmation prompt: