---
title: "Delete a custom hostname"
method: DELETE
path: "/app/{app_id}/custom-hostname"
tags: ["customHostnames"]
---

# Delete a custom hostname

`DELETE /app/{app_id}/custom-hostname`

Remove a custom hostname from a specific app and service (registry, proxy, download portal, or replicated app).

Required RBAC Policy: kots/app/[:appid]/customhostname/delete

## Path parameters

- `app_id` string, required

## Request body

- object
  - `downloadPortal` DeleteCustomHostnameParams
    - `hostname` string
  - `proxy` DeleteCustomHostnameParams
    - `hostname` string
  - `registry` DeleteCustomHostnameParams
    - `hostname` string
  - `replicatedApp` DeleteCustomHostnameParams
    - `hostname` string

## Response `200`

DeleteCustomHostnameResponse contains whether or not the request was successful

- object
  - `success` boolean

## Other responses

- `400` — Returned on bad input
- `401` — Return if the caller is not authorized
- `403` — Returned if the caller does not have the needed permission
- `404` — Returned on resource not found

---

[API](https://skmtc.net/replicated/apis/vendor-api-v3-2.md) · [All operations](https://skmtc.net/replicated/apis/vendor-api-v3-2/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/replicated/vendor-api-v3-2/versions/6fcf9e54aba4/schema)
