Scrubbing Items from the File or Item Cache

You can remove objects that are no longer in use from the file or item cache using a swadmin command to remove obsolete contents.


Before you begin: A file cache exists for one or more items.
See Also
In Other Guides
Semiconductor Repository Caching
Setting up File Caching for Semiconductor Repo
Setting up Item Caching
From the command line, run the scrub command or define a job using a utility such as cron to schedule the command:

swsadmin scrub [--items] [--files] [--verbose] [--debug] [--dryrun] [--age DAYS] [--help] [PATH…] 
For information on each the swsadmin scrub options, see sws scrub Command Options.

Result: Obsolete files are removed from the cache, freeing up additional disk space, by removing files that are no longer used. For file caches, that means the files have not been touched within a certain timeframe:

  • the default value of 28 days
  • the number specified by the --age option to the command
  • the number specified with the cache.age variable in the configuration file.
For item caches, the item is removed if it is not referenced by any workspace or if all the item's files are obsolete, as defined for file caching.