help-header

How To Purge Cached Resources Using ArvanCloud Web API

To removed cached resources using ArvanCloud’s purge web service, you first need to be authenticated. To do so, you should enter your API Key in the Authorize section.

 

Purge cached resources’ API can function in two different methods:

  • To purge all cached assets
  • To purge selected cached assets

 

Purge all cached assets

 

To use this service, go to the following address:

 

https://napi.arvancloud.com/cdn/4.0/domains/{{Domain}}/caching

 

Required parameters for this method are:

Method: DELETE
Params:
Purge = all
Protocol = array (http,https)
Domains =array (www.test.com,test.com,a.test.com)

Use the following information for the header of this method:

Accept: application/json
Accept-Language: en
Authorization : API KEY

 

Purge selected cached assets

 

To use this service, go to the following address:

 

https://napi.arvancloud.com/cdn/4.0/domains/{{Domain}}/caching

 

Required input parameters for this method are:

Method: DELETE
Params:
purge_url = array

 

The header section for this method should be filled with this information:

Accept: application/json
Accept-Language: en
Authorization : API KEY