Title: Unable to delete cache folder
Last modified: October 8, 2019

---

# Unable to delete cache folder

 *  Resolved [sandy018](https://wordpress.org/support/users/sandy018/)
 * (@sandy018)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/unable-to-delete-cache-folder/)
 * I ran into a problem and want to delete the AO plugin.
 * I have deleted it from the plugin directory but unable to delete from cache folder.
 * There is an htaccess file in wp-content/cache/autoptimize folder that is restricting
   the deletion.
 * <IfModule mod_expires.c>
    ExpiresActive On ExpiresByType text/css A30672000 ExpiresByType
   text/javascript A30672000 ExpiresByType application/javascript A30672000 </IfModule
   > <IfModule mod_headers.c> Header append Cache-Control “public, immutable” </
   IfModule> <IfModule mod_deflate.c> <FilesMatch “\.(js|css)$”> SetOutputFilter
   DEFLATE </FilesMatch> </IfModule> <IfModule mod_authz_core.c> <Files *.php> Require
   all denied </Files> </IfModule> <IfModule !mod_authz_core.c> <Files *.php> Order
   deny,allow Deny from all </Files> </IfModule>
 * I tried editing and changing the permissions but nothing worked. Please help.

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

 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/unable-to-delete-cache-folder/#post-12011256)
 * that file got created with the user under which your site runs but that is (should
   have been) the same user with which the other files were created. maybe install
   the wp filemanager plugin (which also runs with that user as also php) and try
   deleting it that way?
 * hope this helps,
    frank
 *  Thread Starter [sandy018](https://wordpress.org/support/users/sandy018/)
 * (@sandy018)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/unable-to-delete-cache-folder/#post-12012740)
 * Thanks it worked, I was using master FTP credentials, logged in via user credentials
   and it worked.
 *  Plugin Author [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * (@optimizingmatters)
 * [6 years, 7 months ago](https://wordpress.org/support/topic/unable-to-delete-cache-folder/#post-12012766)
 * you’re welcome, feel free to [leave a review of the plugin and support here](https://wordpress.org/support/plugin/autoptimize/reviews/#new-post)!
   🙂

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

The topic ‘Unable to delete cache folder’ 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/)

## Tags

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

 * 3 replies
 * 2 participants
 * Last reply from: [Optimizing Matters](https://wordpress.org/support/users/optimizingmatters/)
 * Last activity: [6 years, 7 months ago](https://wordpress.org/support/topic/unable-to-delete-cache-folder/#post-12012766)
 * Status: resolved