14 Purging RStudio Connect

If you would like to purge RStudio Connect from your server with all of its files and data, you can do it manually. Please follow the following steps.

  1. Stop the RStudio Service. (For more information, 2.2)
  2. Remove the Server.DataDir directory. By default, this is /var/lib/rstudio-connect.
  3. Remove the logs in /var/log/rstudio-connect*
  4. If you’ve defined Database.Dir in your configuration file, remove that directory. If you haven’t, you can skip this step.
  5. Uninstall the RStudio Connect package from your system. On Debian-based installations, this can be done by sudo apt-get purge rstudio-connect. If you’re on RedHat-based installation, sudo yum remove rstudio-connect.x86_64.
  6. Remove /opt/rstudio-connect if it still exists.