cleanup: Clean up OpenCPU files from disk

Description Usage Arguments


OpenCPU stores a library with recent sessions and packages on disk. These files are stored in the temporary directory, so on most systems they are wiped on reboot. The cleanup function can be used to manually force removal of temporary files from disk.


cleanup(what = c("tmp", "gist", "github", "cran", "bioc"), maxage = 10 * 60)



What to clean up? Values correspond to API /ocpu/:what/


The maximum age (in seconds) for a directory to exempted from deletion.

Search within the opencpu package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? or email at

Please suggest features or report bugs with the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.