This topic describes how to delete website configurations and export website configurations in batches.
Delete website configurations
Restore DNS resolution:Before you delete a website configuration, you must first restore its DNS resolution and ensure that the DNS records no longer use the Anti-DDoS Proxy IP address, the Anti-DDoS Proxy CNAME, or the Sec-Traffic Manager CNAME. Otherwise, a service interruption will occur.
Automatic configuration cleanup:One month after all Anti-DDoS Proxy instances under the same account are released, the system automatically clears all related configurations under the account. The countdown starts when the last instance is released.
Log on to the Website Config page in the Anti-DDoS Proxy console.
In the top navigation bar, select the region of your instance.
Anti-DDoS Proxy (Chinese Mainland): Choose the Chinese Mainland region.
Anti-DDoS Proxy (Outside Chinese Mainland): Choose the Outside Chinese Mainland region.
On the Website Config page, find the target website configuration and, in the Actions column, click Delete.
In the deletion confirmation dialog box, confirm the deletion, and click Delete.
NoteIf you need to delete multiple website configurations, you can also select them and click Batch Delete below the website list.
Export website configurations in batches
You can export all Anti-DDoS Proxy website configurations in XML format and download them locally. The format of website configurations exported in batches is consistent with that used for batch import and modification of website configurations.
Log on to the Website Config page in the Anti-DDoS Proxy console.
In the top navigation bar, select the region of your instance.
Anti-DDoS Proxy (Chinese Mainland): Choose the Chinese Mainland region.
Anti-DDoS Proxy (Outside Chinese Mainland): Choose the Outside Chinese Mainland region.
Below the website list, click Batch Export to submit an export task, and then click OK.
Click Tasks in the upper-right corner of the page to view the export progress.

After the export task is complete, in the Tasks panel, in the Actions column, click Download to save the exported file locally.
NoteIf the current task status is Pending, wait for the export task to complete.
After you download the exported file to your local device, you can use a text editor to open the downloaded .xml file and view the website configuration content.
NoteIf you use Anti-DDoS Proxy (Chinese Mainland), the exported file name starts with DDoSCoo_. If you use Anti-DDoS Proxy (Outside Chinese Mainland), the exported file name starts with DDoSDip_. The content format exported from Anti-DDoS Proxy (Chinese Mainland) and Anti-DDoS Proxy (Outside Chinese Mainland) is the same.
(Optional) In the Tasks panel, find a task that you no longer need. In the Actions column, click Delete.
Appendix: XML format of website configurations
When you perform batch operations on Anti-DDoS Proxy website configurations, such as batch import, modification, or export, website configurations are transferred in a fixed XML format.
Parameter description
Website configuration parameter content must begin with <DomainList> and end with </DomainList>. The content in between contains the website configuration parameters. The configuration parameters for each website begin with <DomainConfig> and end with </DomainConfig>. The content in between contains the parameters for that website configuration. For more information, see the following table.
For each additional website configuration, add one <DomainConfig>……</DomainConfig> data structure block.
Website configuration parameter | Description |
| The domain name to configure. Only one domain name can be set. |
| The domain protocol type. Separate multiple protocol types with commas (,). This example specifies HTTP and HTTPS as the protocol types for the domain. |
| The Anti-DDoS Proxy instance associated with the website. Note Each Anti-DDoS Proxy instance corresponds to one ID, so you need only specify the Anti-DDoS Proxy instance ID. Separate multiple instance IDs with commas (,). |
| Origin server information. The structure is as follows:
Note When you configure origin server information for a domain name, specify either an origin server IP address or an origin server domain name. You cannot specify both. |
Example
<DomainList>
<DomainConfig>
<Domain>example.aliyundoc.com</Domain>
<ProtocolConfig>
<ProtocolList>http,https</ProtocolList>
</ProtocolConfig>
<InstanceConfig>
<InstanceList>ddoscoo-cn-zvp2eibz****</InstanceList>
</InstanceConfig>
<RealServerConfig>
<ServerType>0</ServerType>
<ServerList>192.0.XX.XX</ServerList>
</RealServerConfig>
</DomainConfig>
<DomainConfig>
<Domain>demo.aliyundoc.com</Domain>
<ProtocolConfig>
<ProtocolList>http,websocket,websockets</ProtocolList>
</ProtocolConfig>
<InstanceConfig>
<InstanceList>ddoscoo-cn-7pp2e74f****, ddoscoo-cn-2r42e12c****</InstanceList>
</InstanceConfig>
<RealServerConfig>
<ServerType>1</ServerType>
<ServerList>learn.aliyundoc.com</ServerList>
</RealServerConfig>
</DomainConfig>
</DomainList>This example adds the following two website configurations:
Website 1: The domain name is example.aliyundoc.com, the protocol types are HTTP and HTTPS, the associated Anti-DDoS Proxy instance is ddoscoo-cn-zvp2eibz****, and the origin server IP address is 192.0.XX.XX.
Website 2: The domain name is demo.aliyundoc.com, the protocol types are HTTP, WebSocket, and WebSockets, the associated Anti-DDoS Proxy instances are ddoscoo-cn-7pp2e74f**** and ddoscoo-cn-2r42e12c****, and the origin server domain name is learn.aliyundoc.com.