Detach CDN Location from Location Group

To detach a CDN location from a location group, use the following request:

POST /settings/location_groups/:location_group_id/cdn_locations/:cdn_location_id/detach_resource.xml
POST /settings/location_groups/:location_group_id/cdn_locations/:cdn_location_id/detach_resource.json

XML Request Example

curl -i -X POST -H 'Accept: application/xml' -H 'Content-type: application/xml' -u user:userpass -d '' --url http://onapp.test/settings/location_groups/1/cdn_locations/4/detach_resource.xml

JSON Request Example

curl -i -X POST -H 'Accept: application/json' -H 'Content-type: application/json' -u user:userpass -d '' --url http://onapp.test/settings/location_groups/1/cdn_locations/4/detach_resource.json

Returns HTTP 204 response on successful deletion, or HTTP 404 when a CDN location with the ID specified is not found, or the URL requested is incorrect.