Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

johnk's avatar
Level 1

Remove package using composer remove

I removed some packages using the command "composer remove vendor/nameofvendor" and the command works. But the package files, like classes, etc, are not removed from the project folder. This is normal? Or all files related to the package should be removed from the project folder when the package is removed?

0 likes
4 replies
johnk's avatar
Level 1

Thanks, but the same issue, the files still are in the project.

johnk's avatar
Level 1

The files still are in the project with:

php artisan config:cache
php artisan config:clear
rin4ik's avatar
rin4ik
Best Answer
Level 50

@johnk remove those packages from composer.json file manually. remove vendor folder and run composer install

1 like

Please or to participate in this conversation.