Title: Clear cache from command line (linux)
Last modified: August 22, 2016

---

# Clear cache from command line (linux)

 *  Resolved [buddywhatshisname](https://wordpress.org/support/users/vhmarkgmailcom/)
 * (@vhmarkgmailcom)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/clear-cache-from-command-line-linux/)
 * How can I clear the cache from the command line, sql, or using wp-cli?
 * [https://wordpress.org/plugins/wordfence/](https://wordpress.org/plugins/wordfence/)

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

 *  [WFBrian](https://wordpress.org/support/users/wfbrian/)
 * (@wfbrian)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/clear-cache-from-command-line-linux/#post-5801246)
 * The location of the cache directory is /wp-content/wfcache. You would need to
   empty the contents of the wfcache folder. Google the rm command or check out 
   the man page for it via the Linux terminal.
 *  Thread Starter [buddywhatshisname](https://wordpress.org/support/users/vhmarkgmailcom/)
 * (@vhmarkgmailcom)
 * [11 years, 3 months ago](https://wordpress.org/support/topic/clear-cache-from-command-line-linux/#post-5801252)
 * Thanks – just checking there was no API call required.

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

The topic ‘Clear cache from command line (linux)’ is closed to new replies.

 * ![](https://ps.w.org/wordfence/assets/icon.svg?rev=2070865)
 * [Wordfence Security - Firewall, Malware Scan, and Login Security](https://wordpress.org/plugins/wordfence/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/wordfence/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/wordfence/)
 * [Active Topics](https://wordpress.org/support/plugin/wordfence/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wordfence/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wordfence/reviews/)

 * 2 replies
 * 2 participants
 * Last reply from: [buddywhatshisname](https://wordpress.org/support/users/vhmarkgmailcom/)
 * Last activity: [11 years, 3 months ago](https://wordpress.org/support/topic/clear-cache-from-command-line-linux/#post-5801252)
 * Status: resolved