Title: Plugin doesn&#8217;t delete files from server
Last modified: January 7, 2020

---

# Plugin doesn’t delete files from server

 *  [butterysam777](https://wordpress.org/support/users/butterysam777/)
 * (@butterysam777)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/plugin-doesnt-delete-files-from-server/)
 * Hello,
 * I use the plugin for many years already and I love it.
 * But for few months already, I delete eg. image01.jpg from the folder, and disappears.
   
   When I upload the new version of image01.jpg, it creates image01-1.jpg.
 * Then I check by FTP that the first image is still there, so I’ve been almost 
   one year double-deleting images, first from plugin, second from FTP for real 
   deletion.
 * I’ve contact hosting support and they say all plugins have Read/Write/Delete 
   permissions, so I don’t know why the plugin doesn’t delete the images from the
   server.
 * I’ve tried delete/install again the plugin.
 * Thanks for your kind support!
 * The page I need help with: _[[log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fwordpress.org%2Fsupport%2Ftopic%2Fplugin-doesnt-delete-files-from-server%2F%3Foutput_format%3Dmd&locale=en_US)
   to see the link]_

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

 *  Plugin Author [AlanP57](https://wordpress.org/support/users/alanp57/)
 * (@alanp57)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/plugin-doesnt-delete-files-from-server/#post-12299747)
 * I’m not able to reproduce this issue on my test site. In addition to file permissions
   there could be the issue of file ownership. It may not be possible to delete 
   a file if WordPress is not the ‘owner’.
 * Also you should check the PHP version that is running on your site. PHP 7.2 is
   the recommended version for use with WordPress.
 * And it may be helpful to open your browser’s console window and watch if there
   are any errors are displayed when deleting a file. If this happens, it could 
   mean that there is a conflict with another plugin.
 *  [vastyram](https://wordpress.org/support/users/vastyram/)
 * (@vastyram)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/plugin-doesnt-delete-files-from-server/#post-12309325)
 * Hello Alan,
 * I’m having the same issue, and I’m on php 7.3. Is it compatible with 7.3?
 * If so, do you know what kind of plugins would conflict with yours?
 * Any help is appreciated!
 * Thanks
 *  Plugin Author [AlanP57](https://wordpress.org/support/users/alanp57/)
 * (@alanp57)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/plugin-doesnt-delete-files-from-server/#post-12309378)
 * It should be compatible. But in my testing, that is the thing which has changed.
   Pervious I was using PHP 5.6 and deleting worked find. It is just a simple function
   call to delete a file and the code has not changed. Now I am using PHP 7.2 and
   it does not delete every time. I could look into checking if the delete was accomplished
   and try deleting again if the file is still present. I will look into this and
   get back to you.
 *  [vastyram](https://wordpress.org/support/users/vastyram/)
 * (@vastyram)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/plugin-doesnt-delete-files-from-server/#post-12313820)
 * Thank you! We’re updating our plugins to see if that’s the issue. But let me 
   know if you find something else.
 *  Plugin Author [AlanP57](https://wordpress.org/support/users/alanp57/)
 * (@alanp57)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/plugin-doesnt-delete-files-from-server/#post-12313831)
 * We are planning to release a new version on Monday that has additional code for
   deleting a media file and its thumbnail files.
 *  Plugin Author [AlanP57](https://wordpress.org/support/users/alanp57/)
 * (@alanp57)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/plugin-doesnt-delete-files-from-server/#post-12319827)
 * We have now released version 5.1.6 which addresses this issue.
 *  Thread Starter [butterysam777](https://wordpress.org/support/users/butterysam777/)
 * (@butterysam777)
 * [6 years, 5 months ago](https://wordpress.org/support/topic/plugin-doesnt-delete-files-from-server/#post-12322135)
 * Thank you so much, the new version fixes the problem I had!
    Really grateful!

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

The topic ‘Plugin doesn’t delete files from server’ is closed to new replies.

 * ![](https://ps.w.org/media-library-plus/assets/icon-128x128.jpg?rev=1814048)
 * [Media Library Folders](https://wordpress.org/plugins/media-library-plus/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/media-library-plus/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/media-library-plus/)
 * [Active Topics](https://wordpress.org/support/plugin/media-library-plus/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/media-library-plus/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/media-library-plus/reviews/)

## Tags

 * [delete](https://wordpress.org/support/topic-tag/delete/)
 * [files](https://wordpress.org/support/topic-tag/files/)
 * [server](https://wordpress.org/support/topic-tag/server/)

 * 7 replies
 * 3 participants
 * Last reply from: [butterysam777](https://wordpress.org/support/users/butterysam777/)
 * Last activity: [6 years, 5 months ago](https://wordpress.org/support/topic/plugin-doesnt-delete-files-from-server/#post-12322135)
 * Status: not resolved