| [ Web Proxy ] |
| Viewing: https://developers.cloudflare.com/api/resources/custom_hostnames/methods/delete | [Back] [Original] |
Permanently deletes a custom hostname and revokes any SSL certificates that were issued for it. This action cannot be undone.
The preferred authorization scheme for interacting with the Cloudflare API. Create a token.
Authorization: Bearer Sn3lZJTBX6kkg7OdcBUAxOO963GEIyGQqnFTOFYYThe previous authorization scheme for interacting with the Cloudflare API, used in conjunction with a Global API key.
X-Auth-Email: user@example.comThe previous authorization scheme for interacting with the Cloudflare API. When possible, use API tokens instead of Global API keys.
X-Auth-Key: 144c9defac04969c7bfad8efaa8ea194SSL and Certificates Writecurl https://api.cloudflare.com/client/v4/zones/$ZONE_ID/custom_hostnames/$CUSTOM_HOSTNAME_ID \
-X DELETE \
-H "Authorization: Bearer $CLOUDFLARE_API_TOKEN"{
"id": "023e105f4ecef8ad9ca31a8372d0c353"
}{
"id": "023e105f4ecef8ad9ca31a8372d0c353"
}| Web Proxy Viewer | New URL | Original Page |