WordPress.org

Ready to get started?Download WordPress

Forums

qCleanup
Beware - This plugin also deletes non-media files (2 posts)

  1. tankard
    Member
    Posted 2 years ago #

    You definitely need to do some work on this plugin.

    I used it to get rid of my redundant media files but it also deleted a bunch of CSS, ZIP and other clearly non-media files.

    Lucky I've got a full backup so I could restore the files... and lucky your plugin is Open Source, otherwise you might end up with a massive lawsuit for damaging peoples' data.

    My suggestion is that you "teach" the plugin to recognise file types. It's not that difficult in PHP.

    This plugin can only be used if your uploads folder doesn't contain important data, otherwise don't even think about using this plugin.

    http://wordpress.org/extend/plugins/q-cleanup/

  2. ognjen.kuljic
    Member
    Plugin Author

    Posted 2 years ago #

    Hi tankard,

    God advice for media file filter.
    I'll keep that in mind for update.

    As for your css, zip and ..., If u upload files true media library(from post add/edit page or admin>media page) WP store their name and location in database.

    This plugin have simple logic. Loads all files(names and locations) from the database and compare that list with upload dir content and return differences.
    Than group files in to categories nominated for deletion:
    -unused files- files that wp have tracks of them, but they are not used (connected to post, page, or some other custom content type).
    -leftover files - files that wp has no "idea" that they exist.

    Sorry for trouble u had.

    P.S.
    Best practice is to manually uploaded files (through ftp, cpanel or ...) keep out of core structure.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags