---
title: "Delete the custom hostname"
method: DELETE
path: "/environments/{environmentId}/custom/hostnames/{customHostnameId}"
tags: ["CustomHostnames"]
---

# Delete the custom hostname

`DELETE /environments/{environmentId}/custom/hostnames/{customHostnameId}`

## Path parameters

- `environmentId` string, required
- `customHostnameId` string, required

## Response `204`

successful operation

## Other responses

- `401` — Unauthorized
- `403` — Forbidden
- `404` — Not Found
- `422` — Unprocessable Entity
- `500` — Internal Server Error

---

[API](https://skmtc.net/dynamic/apis/dashboard-api.md) · [All operations](https://skmtc.net/dynamic/apis/dashboard-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/dynamic/dashboard-api/revisions/aac826315d90/schema)
