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

# Delete PTR

> This endpoint deletes PTR (Reverse DNS) records for specified IP addresses.  
The `api_host` parameter, obtained from the **"Create AUTH-session"** response,  
is dynamically set in the URL.  
Provide the `signature`, `kvm_id`, `valid_until`, and a JSON-encoded list of IP addresses to delete their PTR records.




## OpenAPI

````yaml post /del/ptr
openapi: 3.0.0
info:
  title: EDIS Global Management API
  description: >
    Use the API to access and manage your VPS services, including power control,
    rDNS, and VNC management.  

    **Authentication:** Enable API access on any KVM VPS you own. Then use the
    provided credentials to authenticate your requests.
  version: 1.0.0
servers:
  - url: https://{api_host}
    description: Dynamic API host returned from the AUTH session endpoint.
    variables:
      api_host:
        default: api_host.edisglobal.com
        description: >-
          Enter the full API host exactly as returned by /kvm/v2/get/auth (for
          example: 12345.edisglobal.com)
security: []
tags:
  - name: Authentication
    description: Create an AUTH Session
  - name: Power Management
    description: KVM Power Management
  - name: Installation
    description: ISO, Turnkey, Reinstall
  - name: Settings
    description: KVM System Settings
  - name: Collect Information
    description: KVM VPS Details.
  - name: VNC Management
    description: KVM VNC Access
  - name: PTR
    description: KVM Reverse DNS
  - name: Traffic Pool
    description: Traffic Pool Management
  - name: Hooks
    description: KVM Webhook Management
paths:
  /del/ptr:
    servers:
      - url: https://dns-api.edisglobal.com
        description: Reverse DNS API Server
    post:
      tags:
        - PTR
      summary: Delete PTR Records
      description: >
        This endpoint deletes PTR (Reverse DNS) records for specified IP
        addresses.  

        The `api_host` parameter, obtained from the **"Create AUTH-session"**
        response,  

        is dynamically set in the URL.  

        Provide the `signature`, `kvm_id`, `valid_until`, and a JSON-encoded
        list of IP addresses to delete their PTR records.
      operationId: deletePTR
      requestBody:
        description: Required parameters to delete PTR records.
        content:
          application/x-www-form-urlencoded:
            schema:
              $ref: '#/components/schemas/del_ptr_body'
        required: true
      responses:
        '200':
          description: PTR records deleted successfully.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/inline_response_200_3'
        '400':
          description: >-
            Bad Request - The request is missing required parameters or contains
            invalid values.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/inline_response_400_16'
        '401':
          description: >-
            Unauthorized - The session signature provided is invalid or has
            expired.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/inline_response_401_15'
        '500':
          description: Internal Server Error - An unexpected error occurred on the server.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/inline_response_500_15'
components:
  schemas:
    del_ptr_body:
      type: object
      properties:
        signature:
          type: string
          description: The session signature obtained from the "Create AUTH-session" call.
          example: session_signature_12345
        kvm_id:
          type: string
          description: The unique identifier of the KVM to delete PTR records for.
          example: kvm_123456_789012
        valid_until:
          type: string
          description: >-
            The expiration timestamp of the session obtained from the "Create
            AUTH-session" call.
          example: '1737476000'
        api_host:
          type: string
          description: The API host URL obtained from the "Create AUTH-session" call.
          example: api_host.edisglobal.com
        ip:
          type: array
          description: A JSON-encoded list of IP addresses to delete their PTR records.
          example:
            - 192.168.1.1
            - 192.168.1.2
            - 2001:db8:abcd:0012::1
          items:
            type: string
    inline_response_200_3:
      type: object
      properties:
        status:
          type: string
          description: The status of the operation.
          example: success
    inline_response_400_16:
      type: object
      properties:
        status:
          type: string
          description: Indicates the status of the request.
          example: error
        message:
          type: string
          description: Description of the validation error.
          example: 'Invalid input: ''signature'' field is missing.'
    inline_response_401_15:
      type: object
      properties:
        status:
          type: string
          description: Indicates the status of the request.
          example: error
        message:
          type: string
          description: Explanation of authentication failure.
          example: Session expired. Please re-authenticate.
    inline_response_500_15:
      type: object
      properties:
        status:
          type: string
          description: Indicates the status of the request.
          example: error
        message:
          type: string
          description: Additional details about the error.
          example: Internal server error. Please contact support.

````