EdgeNext
Documentation home

EdgeNext Documentation

Product guides, setup instructions, and technical references.

CDN

Delete Domain Configuration

API Endpoint

Request URL: domain/config (DELETE)

API request domain: cdn.api.edgenext.com
API version: v2

Description

Deletes feature configurations from an accelerated domain. Origin (origin) is a fundamental feature of an accelerated domain and cannot be deleted.

Note: The API must not be called more than 30 times per minute.

Input Parameters

Common parameter: You can obtain your token from support.

Request Parameters (GET)

Add the parameters to the URL query string, for example: ?key1=value1&key2=value2

Parameter Data Type Required Description
domains string Yes The accelerated domains from which to delete features. You can specify up to 10 accelerated domains per request.
config array Yes Features that can be deleted: origin_host: origin Host; cache_rule_list: cache rules (new); ip_black_list: IP blocklist; ip_white_list: IP allowlist; referer: Referer allowlist/blocklist; https: HTTPS certificate; add_response_head: add response headers; add_back_source_head: add origin request headers.

Sample Request

curl -X DELETE "https://cdn.api.edgenext.com/v2/domain/config" \
-d '{
    "domains": "www.test.com",
    "token": "token",
    "config": [
        "referer",
        "ip_white_list"
    ]
}'

Sample Response

JSON format

{
    "code": 0,   // 0 indicates success. If successful, you can call the configuration query API to check the configuration.
    "data": "success"
}

Response Headers

HTTP/1.0 200 OK
Api-Id:                814
Content-Type:          application/json; charset=utf-8
X-Ratelimit-Grad:      minute  // Rate-limit granularity (minute/hour/day)
X-Ratelimit-Limit:     30  // Maximum number of requests per minute
X-Ratelimit-Remaining: 29   // Number of requests remaining in the current minute
X-Retry-After:         44  // Number of seconds until the request limit for the current granularity (minute/hour/day) resets

HTTP Status Codes

Status Code Description
404 The URL you entered is incorrect.
401 Authentication failed. Your token is invalid, or you do not have permission to access this API.
400 Invalid request parameters.
200 The request was successful, and the requested data was returned.
5xx Please contact support.

Need help? Contact our support team at support@edgenext.com.

Back to documentation home