0

Whenever I have a troublesome module, I have to uninstall it, then delete the folder, then go play around PhpMyAdmin to delete junk it left in my database.

This is prone to causing errors and breaking stuff...

Is there a way to uninstall modules cleanly, to delete ALL data?

I have no access to Drush on the server also...

  • I don't believe Drupal.org contrib modules would do such a thing. Seems to me that you're working with custom modules that the creator forgot or did not add a uninstall DB delete functionality to them. – No Sssweat Sep 7 '16 at 23:36
1

Modules should clean up after themselves. If they aren't, you should report it in the module's issue queue.

But, at least with D7, there isn't really much that should be left in the database. Most modules that create tables delete them when they are finished. The biggest area where things are left behind is in the variables table - many modules don't clean these out. You can safely delete them after module uninstall though.

|improve this answer|||||
  • The biggest area where things are left behind is in the variables table - many modules don't clean these out ugh... yeah that's easy to forget. Best way to delete all variables when uninstalling module – No Sssweat Sep 7 '16 at 23:40
  • Well, I just uninstalled Boostrap Gallery, and had a lot of cleaning up to do, couldn't delete views from GUI, had to go in PHpMyadmin, some fields also had to be deleted from there. I guess that is just "normal" procedure? The modules installed new data I guess? – Bruno Vincent Sep 7 '16 at 23:45
  • @BrunoVincent where did you get that module from? – No Sssweat Sep 7 '16 at 23:47
  • drupal.org/project/bootstrap_gallery I always get modules from there, didnt' know there was any other place to get some? – Bruno Vincent Sep 7 '16 at 23:52

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.