Forrest logo
back to the pio tool

pio-system:tldr:5b29b

pio-system: Remove only cached data.
$ pio system prune --cache
try on your machine

The command "pio system prune --cache" is used to clean and remove unnecessary cached files and directories created by the PlatformIO tool.

When running PlatformIO, it creates a cache directory to store various data like package downloads, build artifacts, and other temporary files. Over time, this cache can consume a significant amount of storage space on your computer.

By executing the "pio system prune --cache" command, you initiate a cleaning process which removes unused or outdated files from the cache directory. This operation helps free up disk space, improve performance, and ensure you have the latest and necessary files for your projects.

It is important to note that pruning the cache may require downloading certain files and packages next time you build a project, so it might take a little longer for the first build after pruning.

This explanation was created by an AI. In most cases those are correct. But please always be careful and never run a command you are not sure if it is safe.
back to the pio tool