Title: delete path bug
Last modified: August 21, 2016

---

# delete path bug

 *  [medmic](https://wordpress.org/support/users/medmic/)
 * (@medmic)
 * [12 years, 8 months ago](https://wordpress.org/support/topic/delete-path-bug/)
 * Plugin recognized date organized path but during deletion it tried to remove 
   it from not organized uploads directory and info that file does not exist. And
   removes it only from database but not from server. So during next scan I see 
   that there are only used files, but in reality they are still on ftp.
 * [http://wordpress.org/plugins/cleanup-images/](http://wordpress.org/plugins/cleanup-images/)

Viewing 1 replies (of 1 total)

 *  Plugin Author [delwinv](https://wordpress.org/support/users/delwinv/)
 * (@delwinv)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/delete-path-bug/#post-4186157)
 * Hi medmic,
 * Sorry for the very long delay in responding to you.
 * I have added some debugging code to help resolve this issue in version 1.04 of
   the plugin. Please update to this version and try again.
 * The path of images is determined from the standard WordPress function wp_upload_dir()
   and the meta data of the image stored in the db, so I’m not sure why this is 
   an issue, but I will investigate further. I myself have never tried this when
   organization of image path is by date, so there could definitely be an issue 
   here.
 * Please stand by…
 * 🙂
 * Delwin.

Viewing 1 replies (of 1 total)

The topic ‘delete path bug’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/cleanup-images.svg)
 * [Cleanup Images](https://wordpress.org/plugins/cleanup-images/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/cleanup-images/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/cleanup-images/)
 * [Active Topics](https://wordpress.org/support/plugin/cleanup-images/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/cleanup-images/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/cleanup-images/reviews/)

 * 1 reply
 * 2 participants
 * Last reply from: [delwinv](https://wordpress.org/support/users/delwinv/)
 * Last activity: [11 years, 11 months ago](https://wordpress.org/support/topic/delete-path-bug/#post-4186157)
 * Status: not resolved