---
schema_version: "1"
id: 0b3eb7a0f9fb323d8dcfa8f61b31073afa5a86024b41962e4701e23782fc4263
title: Post Upgrade Cleanup
collection: tableau
version: current
locale: en-us
portal_url: https://docs.salesforce.com/tableau/current/en-us/server-linux/server-upgrade-baseline-post-ug-cleanup.md
canonical_url: https://help.tableau.com/current/server-linux/en-us/server-upgrade-baseline-post-ug-cleanup.htm
source_site: help.tableau.com
content_type: documentation
content_hash: 493650b7e7c9784f9f5bbf78d9eb1cbff78d6a9dc060e15c1bff786371f31ee6
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-us/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>
        ```