Clearing RCC environment caches

Depending on the number of different run environments (conda.yaml files) you are using, and how long you have been running robots, the environment cache can get quite big. Also, as our tools and conda are updated, files can get corrupted.

RCC creates cache files in these locations:

  • Windows: %USERPROFILE%\AppData\Local\robocorp\
  • macOS & Linux: ~/.robocorp/

The RCC environment cache directories are /base, /live, and /pipcache. To clear out the whole environment cache, you need to delete these directories.

Close all Robocorp Lab, App, and Code instances because they might be using these environments.

Clearing cache using the command line/terminal


The file operations can take a while due to the number of small files.

rmdir /Q/S "%USERPROFILE%\AppData\Local\robocorp\base"
rmdir /Q/S "%USERPROFILE%\AppData\Local\robocorp\live"
rmdir /Q/S "%USERPROFILE%\AppData\Local\robocorp\pipcache"

macOS & Linux:

rm -rf ~/.robocorp/base
rm -rf ~/.robocorp/live
rm -rf ~/.robocorp/pipcache

Clearing cache using RCC

If you have RCC installed, you can manage the cache content with the following commands:

  • rcc env cleanup --all: Clears all environment caches. Shut down the environments before running this.
  • rcc env cleanup --days 7: Clears all environment caches that have not been used for x number of days.
  • rcc env cleanup --orphans: Clears all unidentified files and folders from environment caches from older versions or otherwise broken (RCC v7+).