Title: Bug: Folders or images do not get deleted
Last modified: June 4, 2019

---

# Bug: Folders or images do not get deleted

 *  [art2dev](https://wordpress.org/support/users/art2dev/)
 * (@art2dev)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/bug-delete-folder-not-working/)
 * Activating WP Media Folders breaks the AJAX call to delete folders in JoomUnited’s
   WP Media Folder.
 * Console: POST [https://example.com/wp-admin/admin-ajax.php?_fs_blog_admin=true](https://example.com/wp-admin/admin-ajax.php?_fs_blog_admin=true)
   500
 * Newest versions of WordPress and the two plugins, PHP 7.2. Occurs only after 
   activating this plugin. Before that, folder deletion works fine.
    -  This topic was modified 6 years, 11 months ago by [art2dev](https://wordpress.org/support/users/art2dev/).

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

 *  Thread Starter [art2dev](https://wordpress.org/support/users/art2dev/)
 * (@art2dev)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/bug-delete-folder-not-working/#post-11603864)
 * Forgot to mention: After manually reloading the media library page, the folder
   is deleted.
 * But if that folder contained images in the past (and your plugin created a folder
   on disk) the empty folder persists.
 * Edit: Removing an image works in WordPress, but the image persists on disk.
    -  This reply was modified 6 years, 11 months ago by [art2dev](https://wordpress.org/support/users/art2dev/).
 *  Plugin Author [dbarrere](https://wordpress.org/support/users/dbarrere/)
 * (@dbarrere)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/bug-delete-folder-not-working/#post-11605748)
 * Hey,
 * Thanks for the feedback.
    I’ll check that and keep you informed.
 * Best regards
 *  Plugin Author [dbarrere](https://wordpress.org/support/users/dbarrere/)
 * (@dbarrere)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/bug-delete-folder-not-working/#post-11611363)
 * Hi,
 * It should be fixed in the latest version.
    Please update and let me know.
 * best regards
 *  Thread Starter [art2dev](https://wordpress.org/support/users/art2dev/)
 * (@art2dev)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/bug-delete-folder-not-working/#post-11612051)
 * Version 1.1.5? Apparently not.
 * Steps:
 * 1. Go to media library.
    2. Drag and drop an image into the window. 3. After 
   upload is complete, the image appears on disk. 4. Delete image permanently in
   WordPress. 5. Image remains on disk (waited a few minutes), but is removed in
   media library.
 *  Plugin Author [dbarrere](https://wordpress.org/support/users/dbarrere/)
 * (@dbarrere)
 * [6 years, 11 months ago](https://wordpress.org/support/topic/bug-delete-folder-not-working/#post-11613561)
 * Hi,
 * I fixed the 500 error when a WP Media Folder folder is removed.
 * My plugin doesn’t remove files, WordPress core does.
 * Please try to deactivate WP Media Folder and WP Media Folders and remove an uploaded
   file.
    If the file is removed from the Media Manager and is still on your ftp
   then it could be a permission issue.
 * Best regards

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

The topic ‘Bug: Folders or images do not get deleted’ is closed to new replies.

 * ![](https://ps.w.org/wp-media-folders/assets/icon-256x256.png?rev=1899022)
 * [WP Media folders](https://wordpress.org/plugins/wp-media-folders/)
 * [Support Threads](https://wordpress.org/support/plugin/wp-media-folders/)
 * [Active Topics](https://wordpress.org/support/plugin/wp-media-folders/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/wp-media-folders/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/wp-media-folders/reviews/)

## Tags

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

 * 5 replies
 * 2 participants
 * Last reply from: [dbarrere](https://wordpress.org/support/users/dbarrere/)
 * Last activity: [6 years, 11 months ago](https://wordpress.org/support/topic/bug-delete-folder-not-working/#post-11613561)
 * Status: not a support question