Removing Drupal modules
This is a temporary placeholder. Some content from the section Installing Drupal 8 Modules | Drupal 8 Guide on Drupal.org should be moved here.
To remove an unused module, you must be certain that the module is not being used on your site so that it doesn’t affect any functionality.
You can use either Drush or the administrative interface to remove modules.
Using Drush
Requirement – Drush must be installed on your system.
To install Drush, see how to install Drush.
Run the following Drush command to uninstall the module:
drush pm-uninstall module_name
Or use the Drush alias as:
drush pmu module_name
Then clear the cache using the Drush command:
drush cr
That’s it. The uninstalled module will no longer appear in the module list, and its functionality will be removed from the site.
Using the Administrative Interface
- In the “Manage” admin menu, go to the “Extend” tab > “Uninstall” (admin/modules/uninstall), where you’ll find a list of enabled modules ready for removal.
- You can find or filter the module you want to uninstall by typing its name in the search box.
- Check the boxes of the modules you want to uninstall.
- Click the Uninstall button at the bottom of the page.
- Step 4 will prompt you to confirm the module removal request.
- Click Uninstall.
- Go to “Manage” > “Configuration” > “Development” > “Performance” and click “Clear all caches.”
You will see that the functionality of the removed module has been deleted from the site.
This is the complete process of uninstalling a module using Drush and the administrative interface.
Drupal’s online documentation is © 2000-2020 by the individual contributors and can be used in accordance with the Creative Commons License, Attribution-ShareAlike 2.0. PHP code is distributed under the GNU General Public License.