---
title: "Deletes the DNS records of a specific primary domain."
method: DELETE
path: "/domains/primary/{domainId}/records"
tags: ["records - primary"]
---

# Deletes the DNS records of a specific primary domain.

`DELETE /domains/primary/{domainId}/records`

## Request

- Base URL: `https://manager.digicertdns.com/v1`
- URL: `https://manager.digicertdns.com/v1/domains/primary/{domainId}/records`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/digicert/apis/digicert-dns/docs/domains/primary/:domainId/records/delete.ts> (a function with typed inputs; its response is checked against the schema)

This endpoint deletes the DNS records of a specific primary domain, enabling users to clean up or update the domain's DNS configuration.</br></br>Key features include:</br></br>- **Bulk deletion support:** Enables the deletion of multiple records in a single request, simplifying and streamlining bulk management processes.</br>- **Clear success messaging:** Returns a `204` success code with a confirmation message indicating the successful completion of the requested action.</br>- **Efficient lifecycle management:** Facilitates the removal of DNS records, helping maintain a clean and organized system.</br>- **Safeguard with confirmation:** The `confirmDeleteAll` parameter ensures users confirm bulk deletions, reducing accidental actions and enhancing accountability.</br>- **Targeted data deletion:** Utilizes the `domainId` parameter to delete the specified domain's records, ensuring precise removal with enhanced control and accuracy.

## Path parameters

- `domainId` integer, required

## Query parameters

- `confirmDeleteAll` string, required

## Response `204`

DNS records deleted successfully.

## Other responses

- `404`: DNS record not found

---

[API](https://skmtc.dev/digicert/apis/digicert-dns.md) - [All operations](https://skmtc.dev/digicert/apis/digicert-dns/llms.txt) - [OpenAPI document](https://skmtc.dev/digicert/apis/digicert-dns/revisions/c74fc728cff8?raw)
