---
schema_version: "1"
id: 9c7fd2a4452842c9f4095186312e0f62806f5da5cc0f830e4ee42783859d7834
title: Post Upgrade Cleanup
collection: tableau
version: current
locale: en-gb
portal_url: https://docs.salesforce.com/tableau/current/en-gb/server-linux/server-upgrade-baseline-post-ug-cleanup.md
canonical_url: https://help.tableau.com/current/server-linux/en-gb/server-upgrade-baseline-post-ug-cleanup.htm
source_site: help.tableau.com
content_type: documentation
content_hash: a2e4563f58c4d1cd9be2afa5c88a5fd7cfdf5ad7d71a6d70ac1fc4deaee1963f
description: Uninstall the previous Tableau Server version after a successful upgrade.
---
[Skip to main content](#main-content)

# Post Upgrade Cleanup

As discussed in [How Tableau Server Upgrade Works](https://help.tableau.com/current/server-linux/en-gb/server-upgrade-how-upgrade-works.htm), the Tableau Server upgrade process installs a new version side-by-side with your existing version. Now that upgrade is complete and verified, you can remove the older version of Tableau Server to free up disk space. This is an optional step.

## Uninstall previous version

Use this procedure to free up disk space by uninstalling packages for previous Tableau Server versions after you have upgraded to a newer version of Tableau Server.

1. Look at the environment.bash file to confirm which version of Tableau Server is currently in use. At a command prompt, type:
    
    grep TABLEAU\_SERVER\_DATA\_DIR\_VERSION /etc/opt/tableau/tableau\_server/environment.bash
2. Determine which versions of the Tableau Server package are installed on your computer.
    
    - On RHEL-like distributions, including CentOS, run the following command:
        
        yum list installed tableau-server"\*"
    - On Ubuntu, run the following command:
        
        apt list --installed tableau-server"\*"
3. Remove the Tableau Server package with your package manager.
    
    - On RHEL-like distributions, including CentOS, run the following command:
        
        sudo yum remove tableau-server-<version>.x86\_64
    - On Ubuntu, run the following commands:
        
        ```
        sudo apt-get purge tableau-server-<version>
        ```