1

1 year ago, I installed the Drupal Console module on my site.

This module seems to be completely abandoned, so I'm asking my question here.

https://www.drupal.org/project/console

I had installed this module with Composer and in my composer.json file I have this line :

"drupal/console": "~1.0"

In drupal /admin/modules I don't see any module with the name Console. How to remove this module ? Is it normal that there is nothing in Drupal ?

3

Drupal Console is not a Drupal module, is a shell for Drupal that is installed as a Composer package. This means it is not installed in Drupal so you don't have to uninstall it.

To remove it simply use composer and update your dependencies:

composer remove drupal/console
composer install

Update

You may also need to remove the Drupal Console Launcher if you have installed it. Drupal Console Launcher is an executable usually installed in your PATH that allows running Drupal Console without writing the complete path.

This process depends on the method used to install it. If you followed standard installation process just remove the launcher deleting it (Keep in mind that Drupal Console is named drupal):

rm /usr/local/bin/drupal

You probably need to be root to do it.

If the launcher is not there try to locate it using whereis:

$ whereis drupal
drupal: /usr/bin/drupal  

Once you locate the file just remove it.

5
  • It's not a module; it's a Composer package.
    – apaderno
    Aug 21 '20 at 12:37
  • 1
    I guess when I say "is not a regular module" can be understood as "is a 'special' module". I'm updating the answer.
    – sanzante
    Aug 23 '20 at 9:59
  • 1
    Yes, not a regular module could be understand as a module different from other modules. The answer itself was correct. As written now, it avoids confusion between users. (There are already users who wonder why they don't see Drush in the list of modules.)
    – apaderno
    Aug 23 '20 at 10:40
  • It would be good to also mention here how to remove the Drupal Console Launcher, which is the other half of the DC project.
    – Timmah
    Feb 16 at 1:30
  • 1
    Good point @Timmah. Answer updated.
    – sanzante
    Feb 16 at 10:17

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.