# Delete Custom MCP Server Delete (soft delete) a custom MCP server configuration. Only the owner can delete their configurations. The configuration is marked as deleted but not permanently removed from the database. #### Path Parameters **`config_id`** string required The MCP configuration ID (mcp_ prefixed string). ## Returns Returns 204 No Content on successful deletion. Request ```bash curl -X DELETE "https://api.aitronos.com/v1/mcp-configurations/mcp_abc123xyz" \ -H "X-API-Key: $FREDDY_API_KEY" ``` ```python import os import requests api_key = os.environ["FREDDY_API_KEY"] response = requests.delete( "https://api.aitronos.com/v1/mcp-configurations/mcp_abc123xyz", headers={"X-API-Key": api_key} ) if response.status_code == 204: print("MCP configuration deleted successfully") else: print(f"Error: {response.status_code}") ``` ```javascript const response = await fetch( "https://api.aitronos.com/v1/mcp-configurations/mcp_abc123xyz", { method: "DELETE", headers: { "X-API-Key": process.env.FREDDY_API_KEY } } ); if (response.status === 204) { console.log("MCP configuration deleted successfully"); } else { throw new Error("Request failed"); } ``` 204 No Content Empty response body. The configuration has been successfully deleted. 401 Unauthorized ```json { "success": false, "error": { "code": "UNAUTHORIZED", "message": "Authentication required. Please provide a valid API key.", "system_message": "Missing or invalid authorization header", "type": "authentication_error", "status": 401, "trace_id": "req_abc123", "timestamp": "2025-11-13T10:30:00Z" } } ``` 404 Not Found ```json { "success": false, "error": { "code": "NOT_FOUND", "message": "MCP configuration with ID 'mcp_abc123xyz' not found.", "system_message": "Resource not found", "type": "not_found_error", "status": 404, "trace_id": "req_mno345", "timestamp": "2025-11-13T10:30:00Z" } } ```