Purge a static file directory

Modified on Tue, 28 Nov, 2023 at 12:08 PM

From the dashboard


You can purge all the resources in a directory on the "Flush cache" pop-up window.

Select the "Purge asset directories" option and confirm by clicking on "Flush".


All resources with URLs matching the directories will be purged from the cache. Purging is limited to 30 URLs.




From the API

To clear the cache of all or specific resources via the API, please contact our support team to obtain the API token. Make sure you also have the configuration ID, which you can find in the dashboard URL of your configuration. For example, if the URL is https://dashboard.fasterize.com/feo/projects/64/configuration/1, the configuration ID is 1.


Information for the full purge can be found on the API documentation .

curl -i -H 'Content-Type: application/json' -H "Authorization: $myApiToken" -X POST -d '{"directories" : ["https://www.domain.com/wp-content"
]}' https://api.fasterize.com/v2/configs/$config_id/cache/purge/directories



Was this article helpful?

That’s Great!

Thank you for your feedback

Sorry! We couldn't be helpful

Thank you for your feedback

Let us know how can we improve this article!

Select at least one of the reasons
CAPTCHA verification is required.

Feedback sent

We appreciate your effort and will try to fix the article