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

# Remove voice provider configuration (superadmin)

> Deletes the named provider from `OrganizationCredentials.voiceProviders`, unsets it as the active provider if applicable, clears the matching legacy flat credential fields, and removes the caller's phone number for that provider. Superadmin only. Path value must be `twilio` or `sinch`.



## OpenAPI

````yaml /api-reference/openapi.yaml delete /api/calls/providers/config/{provider}
openapi: 3.0.3
info:
  title: Tether Relay and Tether API
  version: 1.0.0
  description: >-
    Route-derived OpenAPI contract generated from tether-relay backend sources.
    Regenerate with scripts/sync-openapi-from-backend.mjs.
servers:
  - url: https://your-instance.example.com
    description: Production
  - url: http://localhost:2212
    description: Local API service
security: []
tags:
  - name: AI
  - name: Applications
  - name: Approval
  - name: Auth
  - name: Automations
  - name: Calls
  - name: Campaigns
  - name: Contact Analytics
  - name: Contact Metrics
  - name: Contact Notes
  - name: Contacts
  - name: Conversation Monitor
  - name: Conversations
  - name: Departments
  - name: Email
  - name: Escalation Dashboard
  - name: Event Logs
  - name: Google Sheets
  - name: Marketplace
  - name: Messages
  - name: Notification Sounds
  - name: Notifications
  - name: Org Snapshots
  - name: Organizations
  - name: Outreach
  - name: Outreach Metrics
  - name: Outreach Sources
  - name: Pipelines
  - name: Processes
  - name: Prompts
  - name: Reminders
  - name: Sms
  - name: Templates
  - name: Traces
  - name: Training
  - name: Upload
  - name: User Snapshots
  - name: Users
  - name: Vertical
  - name: Webchats
  - name: Webhook
paths:
  /api/calls/providers/config/{provider}:
    delete:
      tags:
        - Calls
      summary: Remove voice provider configuration (superadmin)
      description: >-
        Deletes the named provider from
        `OrganizationCredentials.voiceProviders`, unsets it as the active
        provider if applicable, clears the matching legacy flat credential
        fields, and removes the caller's phone number for that provider.
        Superadmin only. Path value must be `twilio` or `sinch`.
      operationId: delete_calls_providers_config_provider
      parameters:
        - in: path
          name: provider
          required: true
          schema:
            type: string
            enum:
              - twilio
              - sinch
          description: Voice provider to remove.
      responses:
        '200':
          description: Configuration removed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CallsSimpleSuccessResponse'
        '400':
          description: Invalid provider
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CallsErrorResponse'
        '401':
          description: Unauthorized or not a superadmin
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CallsErrorResponse'
        '500':
          description: Failed to remove configuration
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CallsErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    CallsSimpleSuccessResponse:
      type: object
      properties:
        success:
          type: boolean
          enum:
            - true
        message:
          type: string
      required:
        - success
      additionalProperties: true
      example:
        success: true
        message: Configuration saved
    CallsErrorResponse:
      type: object
      description: >-
        Error envelope used across most calls endpoints. Some endpoints wrap a
        string error; validation endpoints (parseContractInput) return a
        structured `error` object with `code` and `details`.
      properties:
        success:
          type: boolean
          enum:
            - false
        error:
          oneOf:
            - type: string
            - type: object
              properties:
                code:
                  type: string
                message:
                  type: string
                details:
                  type: array
                  items:
                    type: object
                    additionalProperties: true
              additionalProperties: true
        code:
          type: string
          description: >-
            Stable error code on certain errors (e.g. `NUMBER_NOT_ON_TRUNK`,
            `AGENT_NOT_SYNCED`, `OUTBOUND_IN_FLIGHT`).
      additionalProperties: true
      example:
        success: false
        error: Call not found
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````