Uninstalling a module is easy! Remember to create a backup of your database first. Before deleting the files, it must be disabled.
Disabling a module
- Go to the modules page appropriate for your version of drupal (ie /admin/modules for d7)
- Scroll down until you find the modules that you'd like to remove.
- In this case, you'll want to disable all of the “Views” set of modules. In order to disable a module, click to uncheck the “enabled” checkbox that's next to it. If a module box is greyed out, that means you cannot yet disable it. This is because there is another module that requires that module to be active.
- In this case, Views RSS and Views UI must be disabled first before the Views module can be disabled. Uncheck those boxes first, then click on “Save configuration”
- Once the page refreshes, the checkbox next to the Views module will no longer be greyed out. Repeat the process with the Views module, and everything will be disabled.
Uninstalling a module
Not all modules have specific uninstall functions programmed in. A module will only show up on the uninstall tab if it has this feature. If it doesn't, skip this step and simply delete its files.
- Click on the “uninstall” tab at the top of the modules page. It will look like this:
- Click on the checkbox next to the desired module (in this case Views) and click the uninstall button.
- Next, you'll have a screen verifying your intention to uninstall this module.
- Click on the uninstall button again, and you'll get a screen with green text verifying that the module is uninstalled.
Remove/delete module files
Removal of module files is similar to the process of uploading module files.
- Use the same FTP client software as used in the uploading process, and use the same connection information.
- Navigate to the same directory
- Instead of uploading files from your own computer, delete the directory containing the desired module.
- Use the same SSH client software as used in the uploading process, and use the same connection information.
- Navigate to the same directory.
- Instead of using the wget command to upload files, use the command “
rm -rf [module folder name]”. In the Views example, you would type “
rm -rf views”.
Note: a module without an uninstaller may leave tables or fields in your database. A module like this must be dealt with manually in order to completely remove it from your database, which is best practice to keep your site clean if you definitely do not want to use this module again. There may be an obviously named table or set of tables in your database which can be easily deleted, but the only way to know for sure is to examine the module installation file to see what was added in the first place. Always create a backup snapshot of your database before attempting this!