Uninstall or re-install a Drupal module

less than 1 minute read

After upgrading my Drupal to 6.8 I faced the problem that one module didn’t work right. Maybe it was broken before and I simply didn’t notice that beforehand. However I needed to fix the tables and re-installing the module seemed the best idea to me somehow.

What you need to do are the following steps:

  1. Deactivate you module
  2. Use the uninstall tab on the modules page
  3. Remove the module from sites/all/modules/
  4. For re-installation delete all corresponding entries from the ```variable``` and system tables (I think you have to do that for all site's tables on a multi-site installtion)
  5. Run ```update.php``` just to make sure
  6. Upack the module again
  7. Run ```update.php``` again

That worked fine for me at least.