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

# Delete sub-account

> Stops the login for good and returns unused traffic to the pool.



## OpenAPI

````yaml /resellers/openapi.json delete /subaccounts/{id}
openapi: 3.1.0
info:
  title: ProxyLane Reseller API
  version: 1.0.0
  description: Residential traffic, sub-accounts, proxy generation and static ISP IPs.
servers:
  - url: https://proxylane.dev/api/v1
security:
  - bearer: []
paths:
  /subaccounts/{id}:
    delete:
      summary: Delete sub-account
      description: Stops the login for good and returns unused traffic to the pool.
      operationId: deleteSubaccount
      parameters:
        - $ref: '#/components/parameters/SubaccountId'
        - $ref: '#/components/parameters/IdempotencyKeyOptional'
      responses:
        '200':
          description: OK
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    $ref: '#/components/schemas/Subaccount'
        '404':
          $ref: '#/components/responses/Error'
        '409':
          $ref: '#/components/responses/Error'
components:
  parameters:
    SubaccountId:
      name: id
      in: path
      required: true
      schema:
        type: string
        format: uuid
    IdempotencyKeyOptional:
      name: Idempotency-Key
      in: header
      required: false
      schema:
        type: string
        minLength: 8
        maxLength: 100
  schemas:
    Subaccount:
      type: object
      properties:
        id:
          type: string
          format: uuid
        name:
          type: string
        external_id:
          type:
            - string
            - 'null'
        status:
          type: string
          enum:
            - provisioning
            - active
            - no_traffic
            - suspended
            - attention
            - deleting
            - deleted
        updating:
          type: boolean
          description: A traffic or status change is being applied
        traffic_limit_bytes:
          type: integer
        traffic_limit_gb:
          type: number
        traffic_used_bytes:
          type: integer
        traffic_used_gb:
          type: number
        traffic_available_bytes:
          type: integer
        traffic_available_gb:
          type: number
        traffic_returning_bytes:
          type: integer
        traffic_returning_gb:
          type: number
        traffic_used_24h_bytes:
          type: integer
        traffic_used_24h_gb:
          type: number
        login:
          type:
            - object
            - 'null'
          properties:
            host:
              type: string
            port:
              type: integer
            username:
              type: string
            password:
              type: string
        login_warming_until:
          type:
            - string
            - 'null'
          format: date-time
          description: A new login may be rejected by some gateways until then
        issue_code:
          type:
            - string
            - 'null'
        created_at:
          type: string
          format: date-time
        last_synced_at:
          type:
            - string
            - 'null'
          format: date-time
    Error:
      type: object
      properties:
        error:
          type: object
          required:
            - code
            - message
          properties:
            code:
              type: string
              example: insufficient_pool_traffic
            message:
              type: string
            available_bytes:
              type: integer
            required_cents:
              type: integer
            fields:
              type: object
            balance_cents:
              type: integer
              description: Available USD balance in cents, on ISP `insufficient_balance`
  responses:
    Error:
      description: Error
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    bearer:
      type: http
      scheme: bearer
      description: A reseller key from the panel, starting with plr_

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.