Menu du compte de l'utilisateur

  • Log in

Navigation principale

  • Home Page
  • All CMS
  • Tutorials
  • White Paper
Home
Guide CMS

Breadcrumb

  • Home
  • Tutorials
  • Drupal User Guide
  • Chapter 4. Basic Site Configuration
  • 4.4. Uninstalling Unused Modules

Language selector

  • Français
  • English

Main navigation

  • Home Page
  • All CMS
  • Tutorials
  • White Paper

User login

CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.
  • Create new account
  • Reset your password

Book navigation

  • Tutorials
    • Drupal User Guide
      • Preface
      • Chapter 1. Understanding Drupal
      • Chapter 2. Planning Your Site
      • Chapter 3. Installation
      • Chapter 4. Basic Site Configuration
        • 4.1. Concept: Administrative Overview
        • 4.2. Editing Basic Site Information
        • 4.3. Installing a Module
        • 4.4. Uninstalling Unused Modules
        • 4.5. Configuring User Account Settings
        • 4.6. Configuring the Theme
      • Chapter 5. Basic Page Management
      • Chapter 6. Setting Up Content Structure
      • Chapter 7. Managing User Accounts
      • Chapter 8. Blocks
      • Chapter 9. Creating Listings with Views
      • Chapter 10. Making Your Site Multilingual
      • Chapter 11. Extending and Customizing Your Site

Guy Vigneault

4.4. Uninstalling Unused Modules

By Guy Vigneault | 12:13 AM EDT, Sat September 06, 2025

Goal

Uninstall the core Search and History modules, as well as the core Ban module if you installed it in Section 4.3, “Installing a Module”, to reduce overhead.

Prerequisite knowledge

Section 1.2, “Concept: Modules”

Site prerequisites

  • You must have at least one unused module on your site that you want to uninstall, such as the core Search module.
  • If you want to use Drush to uninstall modules, Drush must be installed. See Section 3.3, “Concept: Additional Tools”.

Steps

You can use the administrative interface or Drush to uninstall modules.

Using the administrative interface

  1. In the Manage administrative menu, navigate to Extend > Uninstall (admin/modules/uninstall) where you will find the list of modules that are ready to be uninstalled.
  2. Check the boxes for the modules you are uninstalling (Ban, History, and Search). Click Uninstall at the bottom of the page.

    Uninstalling module

    Note

    You cannot uninstall a module if it is required by some other module(s) and/or functionality. For example, the core File module is required by the core Text Editor, CKEditor, and Image modules. It can’t be uninstalled unless you uninstall its dependent module(s) and functionality first. A module that cannot be uninstalled yet will have a disabled checkbox, restricting you from uninstalling it.

  3. Step 2 will prompt you to confirm the module uninstall request. Click Uninstall.

    Confirm uninstall - search module

Using Drush

  1. In the Manage administrative menu, navigate to Extend (admin/modules). The Extend page appears showing all the available modules in your site.
  2. Find the machine name of the module you want to uninstall, by expanding the information area for the module. For instance, the core Ban module’s machine name is ban.
  3. Run the following Drush command to uninstall the module:

    drush pm:uninstall ban

Expand your understanding

  • Section 3.3, “Concept: Additional Tools”
  • Section 12.2, “Clearing the Cache”
  • You can also uninstall the core Comment module by following these steps, but only after comment fields have been removed, which is a side effect of Section 6.2, “Deleting a Content Type”.

Videos

Uninstalling Unused Modules

Attributions

Written and edited by Joe Shindelar at Drupalize.Me, Surendra Mohan, and Jojy Alphonso at Red Crackle.

 

Book traversal links for Tutorials

  • ‹ 4.3. Installing a Module
  • Up
  • 4.5. Configuring User Account Settings ›
CMS

 

All CMS

 

Tuto

 

Tutorials

 

White Paper

 

White Paper

Powered by Drupal

Privacy Policy

Privacy Policy

 

Recent content

  • 11.4. Finding Themes
    2 days 19 hours ago
  • 11.3. Downloading and Installing a Module from Drupal.org
    2 days 19 hours ago
  • 11.2. Enabling and Disabling Maintenance Mode
    2 days 19 hours ago
  • 11.1. Finding Modules
    2 days 19 hours ago
  • Chapter 11. Extending and Customizing Your Site
    2 days 19 hours ago

Copyright

Creative Commons

Sauf mention contraire, Guide CMS © 2025 par Guy Vigneault est sous licence Creative Commons Attribution - Utilisation non commerciale - Partage dans les mêmes conditions 4.0 International

 

Creative Commons

Unless otherwise stated, Guide CMS © 2025 by Guy Vigneault is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International Public License

eGV Web