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.

Clearing cache using RCC

Using RCC is by far the simplest choice here and you can get it here.
RCC is just a single standalone executable that you can download and use the following commands to clear things up:

  1. Shut down all Robocorp Lab, App, and Code instances.
  2. Run rcc env cleanup --all to clear all environment caches.

Clearing cache using the command line/terminal

RCC by default creates cache files in these locations:

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

Since January 2021 all Robocorp tools support changing this location using either ROBOCORP_HOME environment variable or in the tools themselves. So adjust target folder accordingly.

The RCC environment cache directories are /base, /live, /pkgs, 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.


The file operations can take a while due to the number of small files.
If you get warning on file or folder locked / in use the simplest way to make sure the file locks are released is to reboot your machine.

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

macOS & Linux

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