使用composer删除库的正确方法是什么? [关闭]

I've been install 2 libraries into my php project. Now I want to remove on of them because I've install the wrong library (my bad). Is it okay if I just delete the folder ? If there is another way to do that correctly, please tell me.

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