You can call the DeleteSpecificConfig operation to delete specific configurations of a CDN domain.

Debugging

Alibaba Cloud provides OpenAPI Explorer to simplify API usage. You can use OpenAPI Explorer to search for APIs, call APIs, and dynamically generate SDK example code.

Request parameters

Parameter Type Required Description
Action String  Yes The operation that you want to perform. Set this parameter to DeleteSpecificConfig.
DomainName String Yes The name of the CDN domain of which the configurations are deleted.
ConfigId String Yes The ID of the configuration. You can specify multiple configuration IDs and separate them with commas (,). To query the configuration ID of a specific feature, call the DescribeCdnDomainConfigs operation.

Features

Feature Description
referer_white_list_set Configures the referer whitelist.
referer_black_list_set Configures the referer blacklist.
filetype_based_ttl_set Sets the expiration rules for files.
path_based_ttl_set Sets the expiration rules for directories.
cc_defense Configures protection against HTTP flood attacks.
oss_auth Controls the access to an OSS bucket.
ip_black_list_set Configures the IP blacklist.
ip_white_list_set Configures the IP whitelist.
error_page Redirects an error page to a specified page.
tesla Configures HTML optimization for access acceleration.
set_req_header Modifies the custom origin header.
set_req_host_header Modifies the origin host.
set_hashkey_args Filters URL parameters.
aliauth Configures Alibaba authentication.
set_resp_header Sets the response header. To verify the setting, you can check the response messages on the client (browser).
video_seek Configures the video seeking feature.
range Configures the object chunking feature.
gzip Configures intelligent compression with GNU zip (gzip).
https_force Forces redirection of HTTP requests to HTTPS.
http_force Forces redirection of HTTPS requests to HTTP.
alilive Configures the ApsaraVideo Live service.
forward_scheme Configures the origin protocol policy.
tmd_signature Sets the Taobao Missile defense (TMD) rules.

Response parameters

Parameter Type Description
RequestID String The ID of the request.

Examples

Sample request

http://cdn.aliyuncs.com/?Action=DeleteSpecificConfig
&DomainName=example.com
&ConfigId=2317
&<Common request parameters>

Sample success response

JSON format

{
    "RequestId": "04F0F334-1335-436C-A1D7-6C044FE73368"
}

Error codes

Error code Error message HTTP status code Description
MissingParameter The specified value of parameter DomainName can not be empty. 400 The error message returned because the DomainName parameter is not specified.
MissingParameter The specified value of parameter ConfigId can not be empty. 400 The error message returned because the ConfigId parameter is not specified.
Invalid%s.ValueNotSupported FunctionName [%s] is not supported. 400 The error message returned because the specified FunctionName parameter is not supported.