• Skip to main content
  • Skip to primary sidebar

How to Uninstall W3 Total Cache Completely

Reading Time: 4 mins. Posted on March 25, 2020 .

Step by step guide to show how to remove and Uninstall W3 Total Cache completely and delete any erroneous files and settings.

How to Uninstall W3 Total Cache Completely

Let me share how to remove and uninstall W3 Total Cache manually to ensure it is completely removed from your WordPress install. So one can install other caching plugins including the one I use and recommend that is WP Rocket.

You can check the comparison of WP Rocket with W3 Total Cache here or read my review of WP Rocket here.

Now let’s begin uninstallation of W3 Total Cache.

1. Disable all Settings Under General

Under the General Settings, disable everything:

  • Preview mode – Disable
  • Page Cache – Disable
  • Minify – Disable
  • Opcode Cache – Disable
  • Database Cache – Disable
  • Object Cache – Disable
  • Browser Cache – Disable
  • CDN – Disable
  • Reverse Proxy – Disable
  • User Experience > Lazy Loading – Disable
  • Fragment Cache – Disable

And then click “Save all settings”.

Once done, the plugin will become disabled as shown here:

W3 Total Cache Disabled

At the top of the General Settings page, a message confirming that “The plugin is currently disabled.” means we are good to proceed further.

2. Deactivate and Delete the Plugin

Once all the settings for the W3 Total Cache plugin are disabled, it is now safe to de-activate the plugin and then delete it.

In the WordPress admin area, visit the Plugins page

Click “Deactivate” for W3 Total Cache Plugin.

W3 Total Cache Deactivate

Once the plugin is deactivated, you will see the “Delete” button. Click Delete.

W3 Total Cache Delete

3. Delete Drop-Ins Files

W3 Total Cache creates 3 files inside the wp-content folder. WordPress calls them “Drop-Ins” and you can find them listed as Drop-Ins on the Plugins page.

The files created are

  • db.php
  • advanced-cache.php
  • object-cache.php

Once we disable database cache, page cache, and browser cache, these files are deleted. However, in some cases, if the plugins cannot delete them, they do remain.

So check if these 3 file exists inside the wp-content folder and if they do, delete them.

You will either need to use FTP to access the server’s wp-content folder or CPanel’s file manager. However, one can also consider using the WordPress File Manager plugin as well.

4. Delete wp-content/w3tc-config Folder

The  w3tc-config inside the wp-content folder also remains in case the plugin can’t delete the folder due to permissions.

W3 Total Cache w3tc-config

So, if the folder exists, delete it. Again, you will either need to use FTP to access the server’s wp-content folder or CPanel’s file manager.

5. Remove WP_CACHE from Config

At the very top of the wp-config file, you will find WP_CACHE defined as true by W3 Total Cache.

W3 Total Cache Config

Adding forward-slash twice before the define statement will comment it out.

If you are not sure it is ok to let the same remain. WordPress is smart enough to ignore if there isn’t a cache plugin available for use.

6. Delete Folder wp-content/cache

Finally, we should also delete the cache files that were created by the W3 Total Cache plugin to uninstall it completely.

W3 Total Cache Cache

Delete the complete cache folder inside the wp-content folder. It contains all the caching data stored in files.  Again, you will either need to use FTP to access the server’s wp-content folder or CPanel’s file manager.

7. Remove W3TC .htaccess Code

W3TC adds a lot of code in the .htacess file. Verify all the code by W3TC has been deleted. In step 1, when we disabled each option, the plugin removes its associated code from the .htaccess file. However, it is worth checking.

For browser cache, the code is between

  • # BEGIN W3TC Browser Cache
  • # END W3TC Browser Cache

For CDN the code is between

  • # BEGIN W3TC CDN
  • # END W3TC CDN

For page cache, the code is between

  • # BEGIN W3TC Page Cache core
  • # END W3TC Page Cache core

Ideally, you can remove any code between # BEGIN W3TC … and # END W3TC … from the .htaccess file. Still, if you are not sure how to edit the htaccess file or if you doubt it can break the site, replace the htaccess file with the default htaccess by WordPress.

You are Here: Home / Tools / How to Uninstall W3 Total Cache Completely

About Shabbir Bhimani

Blogging Since 2009. If I can leave my high paying C# job in an MNC in the midst of global financial crisis of 2008, anybody can do it. @BizTips I guide programmers and developers to Start and Grow an Online Business. Read more about me here.

May I help You With ...

Upwork Proposal
Finding Clients
Start a Store
Start a Blog
 

Or Help Yourself ..

Primary Sidebar

About Shabbir Bhimani

Blogging Since 2009. If I can leave my high paying C# job in an MNC in the midst of global financial crisis of 2008, anybody can do it. @BizTips I guide programmers and developers to Start and Grow an Online Business.

Get in touch with me on LinkedIn or read more about me here.

Let me Guide You to Start and Grow your Online Business

Download my
FREE eBook NOW
to win more clients.
And it is not an annoying pop-up either

Additional menu

  • Twitter
  • Linkedin

BizTips

Shabbir Bhimani: Start and Grow an Online Business

  • Freelancers Start Here
  • Start An eCommerce Store
  • Start A Blog
  • About
  • Archive
  • Disclaimer
  • Contact
  • Glossary

2009 - 2025 All my content & images are licensed as Creative Commons.

WebTurtles LLP. LLPIN: AAL-5288. Hosted with Linode.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Cookie settingsACCEPT
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these cookies, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may have an effect on your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT