Introduction
Sometimes cached content in Nginx becomes outdated and needs to be removed so users get fresh content. Purging cached content means deleting stored files so Nginx fetches new versions from the source.
When you update a website but users still see old pages due to caching
When you fix a bug in a cached resource and want the fix to appear immediately
When you want to clear cache for a specific URL without restarting Nginx
When you want to free disk space used by old cached files
When you want to test changes to your site without cached interference