Running the following command will remove the package from vendor (or wherever you install packages), composer.json and composer.lock. Change vendor/package appropriately.
It is important that you must remove all references from your project before execute the command below.
composer remove vendor/package
It is important that you must remove all references from your project before execute the command below.
composer remove vendor/package