• Resolved erikdemarco

    (@erikdemarco)


    Its really genius app to clean unused media.

    But when come to uninstall it didnt clean all settings of the plugin itself. It feels like you clean

    When I uninstall i see many table of ‘mclean’ and many options of ‘meowapps’, ‘wpmc’ is not cleaned. Even more bad its still autoloaded.

    Ok lets imagine. If all the plugin author is like this. And average user install and uninstalling 100 plugins in couple years. it will autoload huge unused options. Every single request!

    If you still need this setting and table. At least give user choice to delete all unused database, so if user decide not to uninstall this plugin anymore, they will not wasting space of their database

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Author Jordy Meow

    (@tigroumeow)

    Hi @erikdemarco,

    You are very right! I thought about this a few times and wonder what was the best way to handle this.

    I never tried to create a popup on uninstall, but that would be the best idea (I need to check how to do that).

    I could remove everything on uninstall, and I actually used to do that; unfortunately, that also remove the information about the trash and therefore, it makes it impossible to get files back from it. So instead of removing the tables on uninstall, I added a “Reset” button in the Settings. If you Reset and delete the plugin right away, the tables will not be re-created.

    If you know plugins that handle uninstall very well, I am interested, I would like to see the best process for it.

    Thread Starter erikdemarco

    (@erikdemarco)

    Hi @tigroumeow

    Usually developer, Put this checkbox in the settings menu.

    For example you can have a checkbox which written like:
    “Delete all settings during uninstall. Warning: This will also empty all files currently in the trash.”

    So during uninstall. All files in ‘uploads/wpmc-trash’ will also be cleaned, including all information about the trash.

    I think its a win-win solution. You gave user a choice. And this setting is disabled by default. If user want to clean all things they can just check this box before uninstall.

    Is there any drawback of this?

    Plugin Author Jordy Meow

    (@tigroumeow)

    Indeed, it’s the best way. The option was added in the latest release ??

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘Doesnt clean itself when uninstall’ is closed to new replies.