---
title: "Delete a DNS record"
method: DELETE
path: "/v2/domains/{domain}/records/{recordId}"
tags: ["dns"]
---

# Delete a DNS record

`DELETE /v2/domains/{domain}/records/{recordId}`

## Request

- Base URL: `https://api.vercel.com`
- URL: `https://api.vercel.com/v2/domains/{domain}/records/{recordId}`
- Auth: HTTP bearer

Removes an existing DNS record from a domain name.

## Path parameters

- `domain` string, required
- `recordId` string, required

## Query parameters

- `teamId` string
- `slug` string

## Response `200`

Successful response by removing the specified DNS record.

- object

## Other responses

- `400`: One of the provided values in the request query is invalid.
- `401`: The request is not authorized.
- `403`: You do not have permission to access this resource.
- `404`
- `410`

## Changes

- **2026-07-21** `2ae10ee9d21c`: 1 info
  - added the non-success response with the status `410`
- **2025-03-19** `37b482c58c92`: 1 info
  - added the new optional `query` request parameter `slug`

[Operation history](https://skmtc.dev/vercel/apis/vercel-api/changes/v2/domains/:domain/records/:recordId/delete.md)

---

[API](https://skmtc.dev/vercel/apis/vercel-api.md) - [All operations](https://skmtc.dev/vercel/apis/vercel-api/llms.txt) - [OpenAPI document](https://skmtc.dev/vercel/apis/vercel-api/revisions/60686c0e1f6a?raw)
