---
title: "Clears multiple records from a specific primary domain."
method: POST
path: "/domains/primary/{domainId}/records/bulk/delete"
tags: ["records - primary - bulk operations"]
---

# Clears multiple records from a specific primary domain.

`POST /domains/primary/{domainId}/records/bulk/delete`

## Request

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

This endpoint clears multiple records from a specific primary domain, streamlining the process of removing multiple DNS records simultaneously.</br></br>Key features include:</br></br>- **Bulk clearing support:** Enables the clearing of multiple records in a single request, simplifying and streamlining bulk management processes while retaining record structures.</br>- **Clear success messaging:** Returns a `204` success code with a confirmation message indicating the successful completion of the requested action.</br>- **Comprehensive error handling:** Returns a `400` error code with a clear description when requests fail.</br>- **Efficient lifecycle management:** Facilitates the removal of records, helping maintain a clean and organized system.</br>- **Targeted data clearing:** Utilizes the `domainId` parameter to clear the specified domain's records, ensuring precise removal with enhanced control and accuracy.

## Path parameters

- `domainId` integer, required

## Request body

- SimpleRecords[]
  - `id` integer
  - `type` string

## Response `204`

Records cleared successfully.

## Other responses

- `400`: Request is malformed or invalid.

---

[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)
