---
title: "Withdraw a DNS-01 challenge value"
method: DELETE
path: "/v1/hostnames/{id}/acme-challenge"
---

# Withdraw a DNS-01 challenge value

`DELETE /v1/hostnames/{id}/acme-challenge`

## Request

- Base URL: `https://dnsmint.com/api`
- URL: `https://dnsmint.com/api/v1/hostnames/{id}/acme-challenge`
- Auth: HTTP bearer

Removes one published challenge value. Withdrawing a value that is already gone is not an error: a client's cleanup runs whether or not its publish completed, so it must be callable unconditionally. Works on a hostname in any status.

## Path parameters

- `id` string, required

## Request body

- object
  - `txt` string, required

## Response `200`

Challenge withdrawn, or was not present

- object
  - `txt` string
  - `removed` boolean

## Other responses

- `400`: Invalid JSON, or txt is not a 43-character challenge value
- `401`: Missing or invalid API key
- `403`: Key lacks dns01:write, or is narrowed to another hostname
- `404`: Hostname not found
- `429`: More than 20 challenge updates in a minute on this hostname
- `500`: Unexpected server error.

---

[API](https://skmtc.dev/dnsmint/apis/dnsmint-api.md) · [All operations](https://skmtc.dev/dnsmint/apis/dnsmint-api/llms.txt) · [OpenAPI document](https://skmtc.dev/dnsmint/apis/dnsmint-api/revisions/98fb1f87725a?raw)
