---
schema_version: "1"
id: 05a551dc4efaf74f1068ffb9964c722c581f879ad1e87124fb5b2fea389b373e
title: agent mcp delete (Developer Preview)
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/salesforcedx/sfclireference/guides/agent/cli_reference_agent_mcp_delete.md
canonical_url: https://developer.salesforce.com/docs/platform/salesforce-cli-reference/guide/cli_reference_agent_mcp_delete.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: cf5b4d039814147af7aef3741a43d02b74e6f0b4dcf14e770ce5c717632a132f
products:
  - Salesforce CLI Command Reference
  - salesforcedx
---
<!-- prettier-ignore-start -->

# agent mcp delete (Developer Preview)

Delete an MCP server from the API Catalog.

**note:** 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.

## Description for agent mcp delete

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).

## Flags

| Flag Name (Long) | Flag Name (Short) | Description |
|------------------|-------------------|-------------|
| <code>&#8209;&#8209;api&#8209;version</code> | N/A | **Type:** Value<br><br>Override the api version used for api requests made by this command |
| <code>&#8209;&#8209;flags&#8209;dir</code> | N/A | **Type:** Value<br><br>Import flag values from a directory. |
| <code>&#8209;&#8209;json</code> | N/A | **Type:** Boolean<br><br>Format output as json. |
| <code>&#8209;&#8209;mcp&#8209;server&#8209;id</code> | <code>&#8209;i</code> | **Type:** Value<br>**Required**<br><br>ID of the MCP server to delete. |
| <code>&#8209;&#8209;no&#8209;prompt</code> | N/A | **Type:** Boolean<br><br>Skip the confirmation prompt and delete the MCP server immediately. |
| <code>&#8209;&#8209;target&#8209;org</code> | <code>&#8209;o</code> | **Type:** Value<br>**Required**<br><br>Username or alias of the target org. Not required if the `target-org` configuration variable is already set. |

## Examples for agent mcp delete

Delete an MCP server, confirming interactively:

```shell
sf agent mcp delete --mcp-server-id 0XSxx0000000001 --target-org myOrg
```

Delete an MCP server without a confirmation prompt:

```shell
sf agent mcp delete --mcp-server-id 0XSxx0000000001 --target-org myOrg --no-prompt
```
<!-- prettier-ignore-end -->
