> ## 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 SMS provider configuration

> Removes a provider entry from `smsProviders` and clears legacy flat credential fields for that provider. If the deleted provider was the active one, `smsProvider` is unset (the org will report `provider: null` from `GET /api/sms/providers` until a new active provider is selected). Requires SUPERADMIN.



## OpenAPI

````yaml /api-reference/openapi.yaml delete /api/sms/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/sms/providers/config/{provider}:
    delete:
      tags:
        - SMS
      summary: Remove SMS provider configuration
      description: >-
        Removes a provider entry from `smsProviders` and clears legacy flat
        credential fields for that provider. If the deleted provider was the
        active one, `smsProvider` is unset (the org will report `provider: null`
        from `GET /api/sms/providers` until a new active provider is selected).
        Requires SUPERADMIN.
      operationId: delete_sms_providers_config_provider
      parameters:
        - in: path
          name: provider
          required: true
          schema:
            type: string
            enum:
              - twilio
              - sinch
              - textgrid
          description: Provider whose configuration should be removed.
      responses:
        '200':
          description: Configuration removed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SmsMutationResponse'
        '400':
          description: Invalid provider
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SmsErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SmsErrorResponse'
        '403':
          description: Forbidden (requires SUPERADMIN)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SmsErrorResponse'
        '500':
          description: Failed to remove SMS provider configuration
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SmsErrorResponse'
      security:
        - bearerAuth: []
components:
  schemas:
    SmsMutationResponse:
      type: object
      description: Shared response for save / set-active / delete operations.
      properties:
        success:
          type: boolean
          enum:
            - true
        message:
          type: string
          description: Human-readable confirmation (e.g. "twilio SMS configuration saved").
      required:
        - success
      additionalProperties: true
      example:
        success: true
        message: twilio SMS configuration saved
    SmsErrorResponse:
      type: object
      description: Error envelope for `/api/sms/*` endpoints (provider configuration).
      properties:
        error:
          type: string
        message:
          type: string
        success:
          type: boolean
          enum:
            - false
      required:
        - error
      additionalProperties: true
      example:
        error: Provider configuration not found
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````