> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sidenet.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete tool provider

> Deletes the provider and all of its tools; stored credentials are removed. Reloads the org tools and rebuilds dependent agents.



## OpenAPI

````yaml /api-reference/openapi.json delete /v1/tool-providers/{id}
openapi: 3.1.0
info:
  title: Sidenet API
  version: 1.0.0
  description: >-
    Sidenet HTTP endpoints exposed by the Sidenet Studio. All routes require an
    api key that can be generated through the studio in studio.sidenet.ai.
servers:
  - url: https://api.sidenet.ai
security:
  - bearerAuth: []
paths:
  /v1/tool-providers/{id}:
    delete:
      tags:
        - Tool providers
      summary: Delete tool provider
      description: >-
        Deletes the provider and all of its tools; stored credentials are
        removed. Reloads the org tools and rebuilds dependent agents.
      parameters:
        - name: id
          in: path
          required: true
          schema:
            type: string
            example: 8d3b1a75-6c02-4e59-b84f-27a9d5e10c63
      responses:
        '200':
          description: >-
            Deleted, with the rebuild that followed. Its tools go with it —
            agents that used them are rebuilt without them.
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                  rebuild:
                    type: object
                    properties:
                      scope:
                        type: string
                        description: >-
                          Which slice of the registry was reloaded: `custom`,
                          `mcp` or `all`.
                      tools:
                        type: object
                        properties:
                          affectedToolIds:
                            type: array
                            items:
                              type: string
                          totalToolIds:
                            type: integer
                            description: Tools in the org after the reload.
                          providerCounts:
                            type: object
                            properties:
                              api:
                                type: integer
                              mcp:
                                type: integer
                              other:
                                type: integer
                          mcpErrors:
                            type: array
                            description: >-
                              MCP providers that failed to connect or list tools
                              during the reload. They contributed ZERO tools —
                              an empty array is the healthy case.
                            items:
                              type: object
                              properties:
                                providerId:
                                  type: string
                                providerName:
                                  type: string
                                error:
                                  type: string
                      rebuilt:
                        type: integer
                        description: Agents rebuilt successfully.
                      failed:
                        type: integer
                        description: Agents that failed to rebuild. Non-zero is a problem.
                      skipped:
                        type: integer
                      agents:
                        type: array
                        items:
                          type: object
                      failedAgents:
                        type: array
                        description: >-
                          Present when `failed` is non-zero: which agents, and
                          why.
                        items:
                          type: object
                          properties:
                            agentVersionId:
                              type: string
                              format: uuid
                            mastraId:
                              type: string
                            error:
                              type: string
                      totalBuildTime:
                        type: integer
                        description: Milliseconds spent rebuilding.
        '404':
          description: Not found
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        Organization API key, generated in studio.sidenet.ai. Backend only —
        never in a browser.

````