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

# Remove a phone number from a messaging service



## OpenAPI

````yaml delete /agency/twilio/remove-phone-number-from-messaging-service
openapi: 3.0.0
info:
  title: ClearTalk API
  description: The ClearTalk API Documentation
  version: '1.0'
  contact:
    name: Developer Support
    email: devsupport@cleartalk.ai
servers:
  - url: https://api.cleartalk.ai
    description: ClearTalk AI API Server
security: []
tags: []
paths:
  /agency/twilio/remove-phone-number-from-messaging-service:
    delete:
      tags:
        - Twilio
      summary: Remove a phone number from a messaging service
      operationId: TwilioController_removePhoneNumberFromMessagingService
      parameters: []
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/RemovePhoneNumberFromMessagingServiceDto'
      responses:
        '200':
          description: Phone number removed from messaging service successfully
          content:
            application/json:
              schema:
                type: object
                properties:
                  success:
                    type: boolean
                    description: Operation success status
                  message:
                    type: string
                    description: Success message
                  phone_number_sid:
                    type: string
                    description: Phone number SID
                  messaging_service_sid:
                    type: string
                    description: Messaging service SID
        '400':
          description: Bad request - invalid input data
        '401':
          description: Unauthorized
        '404':
          description: Phone number or messaging service not found
        '500':
          description: Internal server error
      security:
        - apiKey: []
components:
  schemas:
    RemovePhoneNumberFromMessagingServiceDto:
      type: object
      properties:
        messagingServiceSid:
          type: string
        phoneNumberSid:
          type: string
      required:
        - messagingServiceSid
        - phoneNumberSid
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: API Key for authentication

````