• Resolved Will Stocks

    (@willstockstech)


    Hi guys,
    I was installing a few different block plugins to try and find the perfect block for something – I happened to install Cloud Block and uninstalled it, but there’s still a cloud_blocks table left in my database – it is now orphaned as the plugin is no longer installed.
    I’ve manually removed the table now, but wanted to let you know so you can resolve it as part of the uninstalled process going forwards? ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • Plugin Contributor foadyousefi

    (@foadyousefi)

    @willstockstech

    Thanks to using our plugin and reporting. While developing the plugin, we thought about this. The issue is sometimes you just want to uninstall the plugin temporarily to test something then re-activate/install it.

    A solution might be a popup on uninstall and ask if you want to delete the database table or not. What do you think about this solution?

    • This reply was modified 5 years, 6 months ago by foadyousefi.
    Thread Starter Will Stocks

    (@willstockstech)

    hi @foadyousefi

    I can understand not deleting the table when the plugin is deactivated, but when the plugin is uninstalled completely, I would not expect a database table or configuration to remain (I don’t think I’ve ever seen this in a plugin before)?

    As a worst case scenario, yes you could have a popup on uninstall. Or maybe you need a setting in the plugin that defaults to true (but people can then disable this – opt out is better than opt in?) for “Remove all plugin configuration on uninstall”

    Plugin Contributor foadyousefi

    (@foadyousefi)

    @willstockstech

    Yes, you are correct. We will try to implement this in the next release.

    Plugin Contributor foadyousefi

    (@foadyousefi)

    @willstockstech

    Added uninstall hook. Now it should delete plugins table.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Uninstalling the plugin leaves an orphaned database table’ is closed to new replies.