How to Uninstall Composer in Windows 10/11 — Phpflow.com

Parvez Alam
2 min readSep 9, 2022

--

Uninstall or remove composer ( php dependencies manager) in windows 10/11. In this tutorial, you will learn how to remove or uninstall php composer in windows 10/11 system.

Sometimes, we installed composer while trying to install laravel or any php libs, but the installation was not successful and You want to uninstall composer. This tutorial help to uninstall composer in window.

What’s Composer

Composer is an application-level package manager for PHP applications. It manages the dependencies and required libraries for PHP-based applications. You can install, remove and upgrade the package using the composer.

Uninstall Composer From Windows 10/11

To delete or uninstall composer from a Windows 7/8/10 computer, simply follow the steps listed below.

Let’s start to uninstalling/removing composer from Windows 10/11:

Step 1: Open window search.
Step 2: Navigate to Programs uninstall
Step 3: Select the Composer and click uninstall button(upper top)
Step 4: The prompt box will appear with the question “are you sure want to completely remove composer and all its components”, Click yes to process uninstall process.
Step 5: Wait for complete this uninstalling composer process from windows, This will remove the composer from windows 10/11. After successfully uninstall composer from your windows 10/11, You'll get a success message:

Uninstall composer

To remove just the composer package itself from Ubuntu 16.04 execute on the terminal:

sudo apt-get remove composer sudo rm -r composer

How to remove Composer manually

In the steps that follow, you can also manually remove the composer:

Step 1: Search the path of the file composer.phar on your system. The command is whereis composer
Step 2: Delete the file composer.phar
Step 3: Delete the Cache Folder:
Linux: /home//.composer
Windows: C:\Users\\AppData\Roaming\Composer

Originally published at https://www.phpflow.com on September 9, 2022.

--

--

Parvez Alam

Hey, I am Parvez Alam. A software developer since 2009. I love learning and sharing knowledge. https://www.phpflow.com/