> ## Documentation Index
> Fetch the complete documentation index at: https://insightsoftware-preview.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Uninstall Composer

To remove the Composer server and associated microservices from your network environment:

* Remove the Composer server and associated microservices

* Remove Composer-related folders and files

* Remove the PostgreSQL metadata store used by Composer

<Note>
  <b>Note:</b> If you connected Composer to an existing PostgreSQL in your network, then skip these steps.
</Note>

## Uninstall Composer Server and All Associated Components

Select your server's operating system and follow those steps to completely remove all Composer-related components:

* [In CentOS Environments](#in-centos-environments)

* [Uninstall Composer](#uninstall-composer)

* [In Windows Environments](#in-windows-environments)

### In CentOS Environments

1. Stop all Composer microservices:

```json theme={null}
systemctl stop  $(systemctl list-unit-files | grep zoomdata | awk '{print $1}')
```

2. Remove Composer and associated components:

```json theme={null}
yum remove 'zoomdata*'
```

You are asked to verify the removal of the Composer components. Enter '<b>y</b>' to confirm the removal.

3. Verify the removal of Composer components by running the following command. If all components have been successfully erased, the command returns no results.

```json theme={null}
yum list installed | grep zoomdata
```

4. Remove all the Composer-specific folders:

```json theme={null}
sudo rm -rf /etc/zoomdata   
sudo rm -rf /opt/zoomdata					
sudo rm -rf /etc/yum.repos.d/zoomdata*
```

The next steps are to remove the PostgreSQL metadata store and related files. However, skip these steps if you used your existing PostgreSQL as Composer's metadata store. In this case, you have completed the removal of all Composer-related components from your server.

5. Remove the PostgreSQL metadata store:

```json theme={null}
systemctl stop postgresql-12
sudo yum remove 'postgresql*'
```

6. Remove the following PostgreSQL-related file:

```json theme={null}
sudo yum remove 'pgdg*'
```

7. Remove the directories related to PostgreSQL:

```json theme={null}
sudo rm -rf /var/lib/pgsql     
sudo rm -rf /usr/pgsql-12
```

### In Ubuntu 18, 20, or 22 Environments

1. Stop all Composer microservices:

```json theme={null}
sudo systemctl stop $(systemctl list-unit-files | grep 'zoomdata' | awk '{print $1}')
```

2. Remove Composer and associated components:

```json theme={null}
sudo apt-get 
remove 'zoomdata*'
```

You are asked to verify the removal of the Composer components. Enter '<b>y</b> ' to confirm the removal.

3. Verify the removal of Composer components by running the following command. If all components have been successfully erased, the command returns no results.

```json theme={null}
sudo apt list --installed | grep zoomdata
```

4. Remove all the Composer-specific folders:

```json theme={null}
sudo rm -rf /etc/zoomdata     
sudo rm -rf /opt/zoomdata					
sudo rm -rf /etc/apt/sources.list.d/zoomdata*
```

The next steps remove the PostgreSQL metadata store and related files. However, skip these steps if you used your existing PostgreSQL as Composer's metadata store. In this case, you have completed the removal of all Composer-related components from your server.

5. Remove the PostgreSQL metadata store:

```json theme={null}
sudo systemctl stop postgresql-12
sudo apt-get remove 'postgresql*'
```

6. Remove the following PostgreSQL-related file:

```json theme={null}
sudo apt-get
remove 'pgdg*'
```

7. Remove the directories related to PostgreSQL:

```json theme={null}
sudo rm -rf /etc/apt/sources.list.d/pg*     
sudo rm -rf /var/lib/postgresql/					
sudo rm -rf /var/log/postgresql/					
sudo rm -rf /etc/postgresql					
sudo rm -rf /etc/postgresql-common/					
sudo rm -rf /var/run/postgresql
```

### In Windows Environments

1. Stop all Composer microservices:

```json theme={null}
./bootstrap-composer.ps1 -ServicesAction stop
```

2. Create a binary PostgreSQL dump of Composer metadata to the `<install-path>/data/backups/` folder:

```json theme={null}
./bootstrap-composer.ps1 -DumpComposerMetadata
```

<b>Important:</b> Copy the information to a folder outside of the installation path or it will be deleted and unrecoverable after you uninstall Composer.

3. Remove Composer components by running the following command.

```json theme={null}
./bootstrap-composer.ps1 -DeinstallComposer
```

See Windows Bootstrap Reference for more information.

You have completed the removal of all Composer-related components from your server.
