Title: Can this Plugin automatically clear cli cach?
Last modified: July 1, 2026

---

# Can this Plugin automatically clear cli cach?

 *  Resolved [loosefast](https://wordpress.org/support/users/loosefast/)
 * (@loosefast)
 * [4 days, 15 hours ago](https://wordpress.org/support/topic/can-this-plugin-automatically-clear-cli-cach/)
 *  Suddenly, cli cache is exceeding quota on some of my sites and bringing them
   down. Wondering what “kick one off manually via WP-CLI.” means on your intro 
   page, and if this Plugin can automatically clear cli cach?
 * Thanks!

Viewing 6 replies - 1 through 6 (of 6 total)

 *  Plugin Author [Kevin Pirnie](https://wordpress.org/support/users/kevp75/)
 * (@kevp75)
 * [4 days, 15 hours ago](https://wordpress.org/support/topic/can-this-plugin-automatically-clear-cli-cach/#post-18953177)
 * “kick one off manually via WP-CLI.”
 * Means there’s functionality built into the plugin to be able to run it’s purge
   functionality with WP CLI.
 * From the FAQ:
 * > How do I run a purge from the command line?
   > `wp the_cache purge`
   > Add `--allow-root` if running as root. On a multisite, add `--url=https://yoursite.
   > com` to target a specific subsite.
 * No. This plugin cannot clear WP CLI caches. What you can do is run this on your
   server if you have shell access to it: `wp cli cache clear`
 * Also, you can run this to find your servers WP CLI cache locations: `wp cli info`
 * Note, if you are logged in as `root` or `sudo` you will need to append `--allow-
   root` to the command you run.
 *  Thread Starter [loosefast](https://wordpress.org/support/users/loosefast/)
 * (@loosefast)
 * [4 days, 14 hours ago](https://wordpress.org/support/topic/can-this-plugin-automatically-clear-cli-cach/#post-18953221)
 * Hi,
 * Appreciate the quick reply. I have to admit that the command line info is lost
   on me, hence my looking for a Plugin solution. I am seeing various low quota 
   sites on my account go down due to .wp-cli directory creating dozens & dozens&
   dozens of stupid backups of WordPress Plugins. This seems to be a recent and 
   unfortunate development. Searching online for a solution offers command line (
   over my head) and WP-cache options. I’m not sure if wp-cli and WP-cache are the
   same thing. Anyway, I don’t want or need dozens of Plugin backups on these accounts
   and I just want it to STOP.
 * Thanks!
 *  Plugin Author [Kevin Pirnie](https://wordpress.org/support/users/kevp75/)
 * (@kevp75)
 * [4 days, 14 hours ago](https://wordpress.org/support/topic/can-this-plugin-automatically-clear-cli-cach/#post-18953230)
 * [@loosefast](https://wordpress.org/support/users/loosefast/)
 * I feel your pain mate…
 * Do you have control panel access? You may be able to manually clear it out from
   there… usually … (if its a cpanel server) the cli cache is located in the accounts`.
   wp-cli/cache/` directory, this “should be” accessible from the `panel` -> `Files`.
 * If it’s not cpanel, let me know what it is and I can at least point you in the
   right direction…
 * Also I’ll search around a bit more to see if it’s possible, but, I do doubt it
   is. Generally it would require enabling PHP functions on the server that far 
   too dangerous.
 * Either way I’ll pop back in, in a bit and let you know what I find.
 *  Thread Starter [loosefast](https://wordpress.org/support/users/loosefast/)
 * (@loosefast)
 * [4 days, 14 hours ago](https://wordpress.org/support/topic/can-this-plugin-automatically-clear-cli-cach/#post-18953283)
 * Thanks! Yes, I do have whm & cpanel access. I manually deleted the contents of
   the core & plugin folders under the .wp-cli > cache folder. I’m ‘talking’ to 
   hosting support about this, and I should probably learn how to disable wp-cli
   via command line. If all wp-cli function does is make backups of old WordPress
   versions & Plugins, I can’t see why anybody needs it. Thanks again!
 *  Plugin Author [Kevin Pirnie](https://wordpress.org/support/users/kevp75/)
 * (@kevp75)
 * [4 days, 13 hours ago](https://wordpress.org/support/topic/can-this-plugin-automatically-clear-cli-cach/#post-18953316)
 * [@loosefast](https://wordpress.org/support/users/loosefast/) 🙂
   Good luck with
   the “talk” mate 🙂
 * wp-cli is pretty handy with everything else that it can do… I’ve run into times
   with “maintenance clients” where their site’s are mission critical, but they 
   need 20 plugins updated because they came to me hacked and a mess… utilizing 
   wp-cli for the updates runs quite a bit faster than doing them in wp-admin, and
   downtime is very minimal if any.
 * CPanel on the other hand… well… best I can say is I left them a long long time
   ago, and never looked back 😉 Hosting providers dont really have too many more
   options for providing their clients a control panel tho, so I do know its still
   in heavy use all around the world 🙂
 * It’s entirely possible that cpanel utilizes it to run its backups.
 *  Thread Starter [loosefast](https://wordpress.org/support/users/loosefast/)
 * (@loosefast)
 * [4 days, 13 hours ago](https://wordpress.org/support/topic/can-this-plugin-automatically-clear-cli-cach/#post-18953327)
 * Thanks! I do see how wp-cli can be useful for a hacked website. Although, my 
   last critical site down turned out to be AI bots sucking the life out of a site.
   A story for another thread…

Viewing 6 replies - 1 through 6 (of 6 total)

You must be [logged in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fcan-this-plugin-automatically-clear-cli-cach%2F%3Foutput_format%3Dmd&locale=en_US)
to reply to this topic.

 * ![](https://ps.w.org/the-cache-purger/assets/icon-256x256.png?rev=3154520)
 * [The Cache Purger](https://wordpress.org/plugins/the-cache-purger/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/the-cache-purger/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/the-cache-purger/)
 * [Active Topics](https://wordpress.org/support/plugin/the-cache-purger/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/the-cache-purger/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/the-cache-purger/reviews/)

## Tags

 * [wp-cli](https://wordpress.org/support/topic-tag/wp-cli/)

 * 6 replies
 * 2 participants
 * Last reply from: [loosefast](https://wordpress.org/support/users/loosefast/)
 * Last activity: [4 days, 13 hours ago](https://wordpress.org/support/topic/can-this-plugin-automatically-clear-cli-cach/#post-18953327)
 * Status: resolved