After uninstalling all relevant modules with drush un I have tried the following input and got the following output, but I don't think I did it correctly.

composer remove vendor/panels

vendor/panels is not required in your composer.json and has not been removed ./composer.json has been updated

Running composer update vendor/panels

Loading composer repositories with package information

Package "vendor/panels" listed for update is not locked.

Updating dependencies

Nothing to modify in lock file

Installing dependencies from lock file (including require-dev)

Nothing to install, update or remove

Package doctrine/reflection is abandoned, you should avoid using it. Use roave/better-reflection instead.

Package symfony/debug is abandoned, you should avoid using it. Use symfony/error-handler instead.

Package webmozart/path-util is abandoned, you should avoid using it. Use symfony/filesystem instead.

Generating autoload files 48 packages you are using are looking for funding.

Use the composer fund command to find out more!

  • You can only remove packages that exist. You probably mean to type drupal/panels. getcomposer.org/doc
    – cilefen
    Sep 25, 2022 at 20:21

1 Answer 1


Check the composer.json for the actual package name. In this case, for the panels module, it should be drupal/panels, so the command is composer remove drupal/panels.

  • In composer.json for my project I have found, under "require": { this: "drupal/panels": "^4.6",.
    – user108856
    Sep 25, 2022 at 11:54
  • After running the command you shown I no longer found it !
    – user108856
    Sep 25, 2022 at 11:55
  • I recommend the concise and useful official Composer documentation: getcomposer.org/doc
    – cilefen
    Sep 25, 2022 at 11:55

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.