Delete Server by Id
Delete an MCP server and all associated connections.
This will:
- Remove all user connections to this server
- Clean up stored OAuth credentials
- Delete the server configuration
For custom server types, this will also delete the associated server directory.
Authorizations
JWT token obtained through Barndoor's OAuth 2.0 authorization-code flow with PKCE.
The token should be included in the Authorization header:
Authorization: Bearer <your-jwt-token>
Use the Barndoor SDK's loginInteractive() function to obtain tokens automatically.
Path Parameters
Server UUID
Response
Server deleted successfully
Unique identifier for the server
"123e4567-e89b-12d3-a456-426614174000"
Human-readable name of the server
"Salesforce Production"
URL-friendly identifier used in API paths
^[a-z0-9-]+$"salesforce"
Current connection status:
available: Server is available but not connectedpending: Connection is in progress or credentials missingconnected: Server is connected and ready to useerror: Connection failed or encountered an error
available, pending, connected, error "connected"
Third-party provider name
"salesforce"
MCP base URL from the server directory
"https://api.salesforce.com/mcp"