0

I have installed one module with composer and that module stored in vendor folder.

Now i do not need that module, I have deleted from it and run the commnad "composer update"

Still i can see the module stored in vendor,

How to remove it completely, my site is down now.

2 Answers 2

1

you should have run that command to remove the extension :

composer remove company/module-pacakge

While you install module using composer there are 2 files where entries are added :

1 - composer.json

2 - composer.lock

if you have deleted the module manually then, you should delete entries in both files of that module and then run composer update

6
  • where does i find 1 - composer.json 2 - composer.lock files? Commented Oct 4, 2018 at 10:35
  • root folder of your project. Commented Oct 4, 2018 at 10:37
  • i used composer remove company/module-pacakge, but i am getting like this Dependency "composer/composer" is also a root requirement, but is not explicitly whitelisted. Ignoring. Commented Oct 4, 2018 at 10:43
  • like what ? did you tried with other option remove entries from files ? Commented Oct 4, 2018 at 10:44
  • i used remove using composer but not working Commented Oct 4, 2018 at 11:08
0

Running the following command will remove the package from vendor (or wherever you install packages), composer.json and composer.lock. Change vendor/package appropriately.

composer remove vendor/package

Obviously, you'll need to remove references to that package before composer update

when you install any package/module using composer, at that time composer will add the reference into composer.json you can check there your module name. so if you want to remove that module from composer.json, you have to run composer remove vendor/package

2
  • not understood clearly, an you help me with it please Commented Oct 4, 2018 at 10:32
  • when you install any package/module using composer, at that time composer will add reference into composer.json you can check there you module name. so if you want to remove that module from composer.json, you have two option either run composer remove YOUR MODULE NAME or remove from composer.json file
    – Hitesh
    Commented Oct 4, 2018 at 10:34

Your Answer

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

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