Title: Equivalent linux command for &#8220;clear js/css cache&#8221;
Last modified: April 6, 2022

---

# Equivalent linux command for “clear js/css cache”

 *  Resolved [truxton](https://wordpress.org/support/users/truxton/)
 * (@truxton)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/equivalent-linux-command-for-clear-js-css-cache/)
 * Hi,
 * I want to ask if there’s an equivalent command to clear js/css cache via linux
   command. I have thought some commands like ‘rm -rf *.js *.css *.img’, but I don’t
   know if they are absolutely safe/correct to use. (I use cache to provide html
   files, it costs too much when a js/css file is missing)
 * Thank you!

Viewing 1 replies (of 1 total)

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [4 years, 2 months ago](https://wordpress.org/support/topic/equivalent-linux-command-for-clear-js-css-cache/#post-15534945)
 * you will indeed need to also clear the HTML cache, but the easiest way to remove
   AO’s cache would be to `rm -rf wp-content/cache/autoptimize/*` from the root 
   of your WordPress installation and then clear your HTML cache as well.
 * hope this helps,
    frank

Viewing 1 replies (of 1 total)

The topic ‘Equivalent linux command for “clear js/css cache”’ is closed to new replies.

 * ![](https://ps.w.org/autoptimize/assets/icon-256X256.png?rev=2211608)
 * [Autoptimize](https://wordpress.org/plugins/autoptimize/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/autoptimize/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/autoptimize/)
 * [Active Topics](https://wordpress.org/support/plugin/autoptimize/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/autoptimize/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/autoptimize/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [4 years, 2 months ago](https://wordpress.org/support/topic/equivalent-linux-command-for-clear-js-css-cache/#post-15534945)
 * Status: resolved