How to completely uninstall W3 Total Cache plugin.

share on:
completely uninstall W3 Total Cache plugin 2016

W3 Total Cache is one of the best cache plugin available for WordPress sites. It offers many features like Object cache, Database Cache, Minify, and CDN support for Cloudflare , MAXCDN etc. Most of these features are not available in other plugins like WP Super Cache and others.

W3 total cache is also little bit more complicated to configure when compared with other similar plugins. Recently found High Risk XSS Vulnerability Discovered in W3 Total Cache Plugin can be a cause of concern for many users of this great plugin.

If for any reason you decide to uninstall this plugin then you should know the right way to uninstall it.

This plugin stores all its files in Plugins directory of your wordpress installation.
for example ..



or if you are using some panel like cPanel or virtualmin then it should be something like this example..



It also makes some changes in .htaccess file.
If you are using Nginx then you will require to change you nginx.conf too.


Completely remove w3 total cache plugin.

To fully remove this plugin, you need to undo all the config/changes made in w3 total cache before deactivating this plugin.

  • First go to Performance > General Setting.
  • Uncheck all the settings that you have added.
  • save the new changes.
  • Delete all the cache.
  • Now deactivate this plugin and then delete it.


Make sure no settings of W3 Total Cache plugins are left in any of these files.

Please take Backup of wp-config.php file before editing it or any other config file before editing.

To Undo changes in wp-config.php.

  • Check for following line in your wp-config.php.
/** Enable W3 Total Cache */
 (define(‘WP_CACHE’, true)); // Added by w3 Total Cache


and delete it.


To undo changes in .htaccess file remove everything between BEGIN and END W3TC tags.

# BEGIN W3TC Browser Cache
 <IfModule mod_mime.c
 # END W3TC Browser Cache


Finally delete advanced-cache.php, db.php, wp-total-cache-config.php, and delete the entire w3tc folder from the Wp-content folder.

rm -rf /home/user/public_html/wp-content/advanced-cache.php
rm -rf /home/user/public_html/wp-content/wp-total-cache-config.php
rm -rf /home/user/public_html/wp-content/db.php
rm -rf /home/user/public_html/wp-content/w3tc*


Again Do not copy and paste these commands. These are just the examples and filenames and their location can be different in your server.

Now you have successfully removed W3-Total-Cache Plugin.

Finally If you are having any problems removing W3 Total Cache plugin then let me know and i will try to help you with it.

Good day.

share on:


Hello there, My name is Rishi Guleria and I work as a Linux system administrator. I have created this blog to share what I have learned so far and to learn new things. Don't forget to leave the feedback. Have a great day. :)

Leave a Response

share on: