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

# Remove an extra number (On Demand)

> Gives back N paid extra-number slot(s) — the inverse of POST. Requires a TENANT-scoped key. NO refund for the current cycle; it only stops future billing. Deleting a number (DELETE /v1/numbers/{id}) already releases its slot automatically. Returns 409 NUMBER_LIMIT_EXCEEDED if the reduction would drop the limit below currently connected numbers.

**Requires a tenant-scoped key.**



## OpenAPI

````yaml openapi.json DELETE /v1/subscription/extra-numbers
openapi: 3.1.0
info:
  title: Pilot Status API
  version: 1.0.0
  license:
    name: Pilot Status Terms of Service
    url: https://pilotstatus.com.br/terms
  description: >-
    Public REST API for Pilot Status. Authenticate with the `x-api-key: ps_...`
    header (or `x-api-key-id`). Base URL: https://pilotstatus.com.br
servers:
  - url: https://pilotstatus.com.br
security:
  - apiKey: []
  - apiKeyId: []
paths:
  /v1/subscription/extra-numbers:
    delete:
      tags:
        - Subscription
      summary: Remove an extra number (On Demand)
      description: >-
        Gives back N paid extra-number slot(s) — the inverse of POST. Requires a
        TENANT-scoped key. NO refund for the current cycle; it only stops future
        billing. Deleting a number (DELETE /v1/numbers/{id}) already releases
        its slot automatically. Returns 409 NUMBER_LIMIT_EXCEEDED if the
        reduction would drop the limit below currently connected numbers.


        **Requires a tenant-scoped key.**
      operationId: delete_subscription_extra-numbers
      requestBody:
        required: false
        content:
          application/json:
            schema:
              type: object
              properties:
                quantity:
                  type: number
                  description: How many extra number slots to release (default 1).
                  example: '1'
            example:
              quantity: 1
      responses:
        '200':
          description: Removed 1 slot
          content:
            application/json:
              example:
                success: true
                charged: true
                plan: ON_DEMAND
                paidExtraNumbers: 1
                maxNumbers: 1
                proratedTotal: 0
        '400':
          description: Invalid payload or parameters
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
              example:
                error: quantity deve ser um inteiro >= 1
        '401':
          description: Missing or invalid `x-api-key` / `x-api-key-id` header
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
              example:
                error: Unauthorized
        '403':
          description: Number-scoped key used on a tenant-only endpoint
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
              example:
                error: Number-scoped keys cannot call tenant endpoints
                code: NUMBER_SCOPE_NOT_ALLOWED
        '409':
          description: Reduction would drop the limit below connected numbers
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
                  currentNumberCount:
                    type: number
                  maxNumbers:
                    type: number
              example:
                error: >-
                  Você tem 2 número(s) conectado(s); remover 2 deixaria o limite
                  em 0. Desconecte números antes de remover slots pagos.
                code: NUMBER_LIMIT_EXCEEDED
                currentNumberCount: 2
                maxNumbers: 0
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                type: object
                properties:
                  error:
                    type: string
                  code:
                    type: string
              example:
                error: Too many requests
components:
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: Your ps_ API key
    apiKeyId:
      type: apiKey
      in: header
      name: x-api-key-id
      description: API key id (alternative to x-api-key)

````