Skip to content
RedirHub/API
Sign inGet API key
Hostnames · host.destroy
DELETE/host/{host}host.destroy

Delete a hostname

Disconnects the hostname from the workspace.

Base URL
https://api.redirhub.com/v1
Auth
Bearer token
Idempotent
Yes
Returns
application/json

The request

Call DELETE /host/{host} with your bearer token. The host path segment identifies the record.

# Delete a hostname
curl -X DELETE "https://api.redirhub.com/v1/host/go.acme.com" \
  -H "Authorization: Bearer $REDIRHUB_TOKEN"

Path parameters

ParameterDescription
hostRequiredstring

The response

A 204 returns the record as JSON.

{
  "message": "The given data was invalid."
}

Status codes

204
No contentNo content
401
UnauthenticatedUnauthenticated
429
Too many requestsToo many requests

What usually comes next

One call is rarely the whole job. These are the endpoints most integrations reach for around this one.