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

# Delete Phonebook

> Hard-delete a phonebook and everything under it (entries, details, layout, device links). Returns the full pre-delete phonebook.



## OpenAPI

````yaml https://api.voxo.co/v2/docs/openapi.json delete /v2/admin/phonebooks/{id}
openapi: 3.1.0
info:
  title: VOXO API
  description: VOXO Communication Platform API
  version: 2.0.0
servers:
  - url: https://api.voxo.co
security:
  - bearerAuth: []
paths:
  /v2/admin/phonebooks/{id}:
    delete:
      tags:
        - Phonebooks
      summary: Delete Phonebook
      description: >-
        Hard-delete a phonebook and everything under it (entries, details,
        layout, device links). Returns the full pre-delete phonebook.
      parameters:
        - schema:
            type: string
            pattern: ^[1-9]\d*$
          in: path
          name: id
          required: true
          description: Phonebook ID
      responses:
        '200':
          description: Pre-delete phonebook
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: number
                    description: Phonebook ID
                  tenant:
                    type: object
                    properties:
                      id:
                        type: number
                        description: Tenant ID
                      name:
                        type: string
                        description: Tenant name
                    required:
                      - id
                      - name
                    additionalProperties: false
                    description: Owning tenant
                  name:
                    type: string
                    description: Phonebook name
                  includeExt:
                    type: string
                    description: Whether tenant extensions are included
                  provisioning:
                    type: number
                    description: Provisioning flag (1/0)
                  contacts:
                    type: array
                    items:
                      type: object
                      properties:
                        firstName:
                          description: Contact first name
                          type: string
                          maxLength: 255
                        lastName:
                          description: Contact last name
                          type: string
                          maxLength: 255
                        phone:
                          description: Primary phone number
                          type: string
                          maxLength: 255
                        email:
                          description: Email address
                          type: string
                          maxLength: 255
                        routeTo:
                          description: Route-to destination
                          type: string
                          maxLength: 255
                        speedDial:
                          description: Speed dial value
                          type: string
                          maxLength: 255
                      additionalProperties: false
                    description: Contacts in this phonebook
                required:
                  - id
                  - tenant
                  - name
                  - includeExt
                  - provisioning
                  - contacts
                additionalProperties: false
        '403':
          description: Error response
          content:
            application/json:
              schema:
                type: object
                properties:
                  name:
                    type: string
                  message:
                    type: string
                  code:
                    type: number
                  validationErrors:
                    type: array
                    items:
                      type: string
                required:
                  - name
                  - message
                  - code
                additionalProperties: false
        '404':
          description: Error response
          content:
            application/json:
              schema:
                type: object
                properties:
                  name:
                    type: string
                  message:
                    type: string
                  code:
                    type: number
                  validationErrors:
                    type: array
                    items:
                      type: string
                required:
                  - name
                  - message
                  - code
                additionalProperties: false
components:
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      bearerFormat: JWT

````