# How to Uninstall PostgreSQL From Windows

> To uninstall Postgres from windows, open control panel &gt; go to programs and features &gt; locate PostgreSQL &gt; Uninstall the PostgreSQL.

Postgres, or PostgreSQL, is an open-source object-relational database management system that is widely utilized for storing and managing data. Uninstalling Postgres from Windows means removing the Postgres software and all of its components from your computer. This can be necessary if Postgres is no longer needed on your system, or if you need to install a different version of Postgres.

This article will demonstrate a comprehensive guide on uninstalling Postgres from Windows.

 **What is the Purpose to Uninstall Postgres on Windows?**

Uninstalling Postgres ensures that all of its files, configurations, and services are removed from the computer, freeing up disk space and resources. Additionally, it is useful if users are experiencing issues with Postgres and need to perform a clean installation to troubleshoot the problem.

 **Method: Using Control Panel to Uninstall Postgres**

Uninstalling PostgreSQL on Windows can be done through the Control Panel or by using the PostgreSQL installer. Here are the steps to follow:

 **Step 1: Open the Control Panel**

Go to the Windows Start menu and search for Control Panel, then click on it to open it:

 **Step 2: Go to “Programs and Features”**

Once you reach the Control Panel, click on “ **Programs and Features** ” (or "Uninstall a program" depending on the version of Windows):

 **Step 3: Locate PostgreSQL**

Scroll down the list of programs until you find PostgreSQL. Click on it to select it:

 **Step 4: Uninstall PostgreSQL**

Click on the “ **Uninstall** ” button by pressing the right button of the mouse on the “PostgreSQL” program:

Follow the prompts to complete the uninstallation process:

Hit the “Next” button to begin the uninstallation of Postgres:

After completing the uninstallation, a new window will appear:

Hit the “Ok” button to finish.

 **Note:** Once the uninstallation is done, the user can manually delete the PostgreSQL files and folders that were left behind. These can typically be found in the “ **Program Files** ” or “ **Program Files (x86)** ” folder in the Windows installation:

Remove the “PostgreSQL” directory to completely uninstall Postgres from your Windows system.

 **Conclusion**

Uninstalling Postgres ensures that all of its files, configurations, and services are removed from the computer. To uninstall Postgres from windows, open the control panel > go to programs and features > locate PostgreSQL > Uninstall the PostgreSQL. This write-up demonstrated a step-by-step guide on uninstalling PostgreSQL from the Windows operating system.

---
[View this page online](https://www.commandprompt.com/education/how-to-uninstall-postgresql-from-windows/)