How to delete Laravel via Composer

This article will show you how to uninstall Laravel with Composer, including a step-by-step example.

Deleting Laravel via Composer

When you are done with a Laravel project, you may want to delete it from your system. Deleting Laravel from your system is easy if you installed it using Composer. In this article, we will go through the steps to delete a Laravel project installed via Composer.

First, you need to open a terminal window, then navigate to your project directory. The command for this is:

cd ~/laravel-project

Now, you need to type the following command to uninstall the Laravel project:

composer remove laravel/laravel

You will be asked to confirm the removal. To confirm, type “y” and press enter. This will remove the Laravel project from your system.

The next step is to delete the Laravel project directory. To do this, type the following command:

rm -rf ~/laravel-project

You will be asked to confirm the deletion. To confirm, type “y” and press enter. This will delete the Laravel project directory from your system.

Finally, you need to remove the Laravel project from your Composer configuration. To do this, type the following command:

composer remove laravel/laravel --remove-all

This will remove the Laravel project from your Composer configuration. You have now successfully deleted the Laravel project from your system.

Answers (0)