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

# Unassign phone number

> Clears the assignment of a phone number so it stops reaching an agent, while the number stays on the workspace. Naming a `target` clears that side, and leaving it out clears both.



## OpenAPI

````yaml /specs-prettified/realtime/openapi.stable.json put /v1/stable/phone-number/{phoneNumberID}/unassign
openapi: 3.0.0
info:
  title: Realtime
  description: Realtime gateway API service
  version: 1.0.0
  contact: {}
servers:
  - url: https://realtime-api.voiceflow.com
security: []
tags: []
paths:
  /v1/stable/phone-number/{phoneNumberID}/unassign:
    put:
      tags:
        - Phone Number
      summary: Unassign phone number
      description: Clears the assignment of a phone number so it stops reaching an
        agent, while the number stays on the workspace. Naming a `target` clears
        that side, and leaving it out clears both.
      operationId: StablePhoneNumberController_unassign
      parameters:
        - name: phoneNumberID
          required: true
          in: path
          schema:
            type: string
          x-vf-doc:
            description: The ID of the phone number to operate on.
          description: The ID of the phone number to operate on.
        - name: workspaceID
          required: true
          in: query
          schema:
            type: string
            description: The ID of the workspace the number belongs to.
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: "#/components/schemas/StablePhoneNumberUnassignRequest"
      responses:
        "200":
          description: Confirms the assignment was cleared. The body is a message only, so
            refetch the phone number to see which sides are now unassigned.
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/StableUpdateResponse"
          x-vf-doc:
            description: Confirms the assignment was cleared. The body is a message only, so
              refetch the phone number to see which sides are now unassigned.
      security:
        - token: []
components:
  schemas:
    StablePhoneNumberUnassignRequest:
      type: object
      properties:
        target:
          description: "Which side of the number to clear: `voice` or `sms`. Omit it to
            clear both. Clearing a side that is not assigned is refused."
          type: string
          enum:
            - sms
            - voice
          x-enumNames:
            - SMS
            - VOICE
      additionalProperties: false
    StableUpdateResponse:
      type: object
      properties:
        message:
          type: string
          description: A human-readable message confirming the update.
      required:
        - message
  securitySchemes:
    token:
      scheme: bearer
      bearerFormat: JWT
      type: http
      description: Voiceflow bearer token
````
