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

# Delete domain record

> **Token scope:** `account` · `org` — read-only tokens refused (not a GET).

Remove a DNS record. One a hostname still claims is refused — it leaves the zone with that hostname; a managed record no hostname claims may go.



## OpenAPI

````yaml /openapi/org.json delete /orgs/{orgId}/domains/{domainName}/records/{recordId}
openapi: 3.1.0
info:
  title: InstaCloud API — Organization level
  version: 0.1.0
  description: >-
    Endpoints under `/orgs/{orgId}`: members, projects, billing, domains.
    Callable with an account-wide token or a token bound to that organization.


    Generated from the platform's own OpenAPI document
    (https://api.instacloud.com/openapi.json); see the [API
    overview](/reference/api/overview) for authentication and token scopes.
servers:
  - url: https://api.instacloud.com
    description: InstaCloud
security:
  - bearerAuth: []
tags:
  - name: Organization
    description: 'The organization itself: name, members, invitations.'
  - name: Projects
    description: Projects inside an organization.
  - name: Audit
    description: The project's event timeline, including agent-ingested events.
  - name: Domains
    description: >-
      Domains bought through InstaCloud, bring-your-own zones and their DNS
      records.
  - name: Billing
    description: Usage, cycles, invoices and credits.
paths:
  /orgs/{orgId}/domains/{domainName}/records/{recordId}:
    delete:
      tags:
        - Domains
      summary: Delete domain record
      description: >-
        **Token scope:** `account` · `org` — read-only tokens refused (not a
        GET).


        Remove a DNS record. One a hostname still claims is refused — it leaves
        the zone with that hostname; a managed record no hostname claims may go.
      operationId: deleteDomainRecord
      parameters:
        - schema:
            format: uuid
            type: string
          in: path
          name: orgId
          required: true
        - schema:
            type: string
          in: path
          name: domainName
          required: true
        - schema:
            pattern: ^[0-9]{1,18}$
            type: string
          in: path
          name: recordId
          required: true
          description: the id from the records list
      responses:
        '200':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Ok'
        '404':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '409':
          description: a hostname still claims the record
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
                description: a hostname still claims the record
        '502':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: Default Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
components:
  schemas:
    Ok:
      type: object
      properties:
        ok:
          type: boolean
    Error:
      type: object
      properties:
        error:
          type: string
      required:
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: Session access JWT or an API token (`insta_<prefix>_<secret>`).

````