Title: clear all programmatically
Last modified: April 26, 2021

---

# clear all programmatically

 *  Resolved anonymized-14087207
 * (@anonymized-14087207)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/delete-files-programmatically/)
 * Since this plugin affects caching it would be nice to have a feature “to clear
   everything” programmatically. Is there currently a way to do this?
    -  This topic was modified 5 years, 1 month ago by anonymized-14087207.

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

 *  Plugin Author [Raul P.](https://wordpress.org/support/users/alignak/)
 * (@alignak)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/delete-files-programmatically/#post-14366651)
 * The plugin does not affect page caching, however if you purge FVM cache and forgot
   to purge your page cache, or server page cache, then your page cache would now
   be pointing to expired and deleted files.
 * FVM will preserve the cache files for 24h, so meanwhile any page cache that doesn’t
   support purging directly from FVM should auto expire.
 * Wat exactly are you asking for, or trying to do?
 *  Thread Starter anonymized-14087207
 * (@anonymized-14087207)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/delete-files-programmatically/#post-14366812)
 * Okay caching maybe a bit bad phrased. I mean the compressing and merging of css
   and js files. So if I change something in a css file I need to clear it to see
   the changes (similar to caching). I am simply looking for a way to make that 
   programmatically. The thing is that I have multiple sites that share some scripts
   and styles (like 3rd party stuff) and I don’t want to log into each page to click
   the buttons to delete everything. If there was a programmatical way to do it 
   I could automate that.
 *  Plugin Author [Raul P.](https://wordpress.org/support/users/alignak/)
 * (@alignak)
 * [5 years, 1 month ago](https://wordpress.org/support/topic/delete-files-programmatically/#post-14366994)
 * Yes, the plugin supports wp-cli, but at the moment it’s only working on version
   3.1.7. You can use `wp fvm purge` to purge it.
 * You can also check if the functions below exist and ran them with php:
 *     ```
       fvm_purge_static_files();
       fvm_purge_others();
       ```
   

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

The topic ‘clear all programmatically’ is closed to new replies.

 * ![](https://ps.w.org/fast-velocity-minify/assets/icon-128x128.jpg?rev=1440946)
 * [Fast Velocity Minify](https://wordpress.org/plugins/fast-velocity-minify/)
 * [Support Threads](https://wordpress.org/support/plugin/fast-velocity-minify/)
 * [Active Topics](https://wordpress.org/support/plugin/fast-velocity-minify/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/fast-velocity-minify/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/fast-velocity-minify/reviews/)

 * 3 replies
 * 2 participants
 * Last reply from: [Raul P.](https://wordpress.org/support/users/alignak/)
 * Last activity: [5 years, 1 month ago](https://wordpress.org/support/topic/delete-files-programmatically/#post-14366994)
 * Status: resolved