sws scrub Command Options

This command removes obsolete or unused files from the module cache.

Note: Most commands options can be entered in an abbreviated format. The abbreviated form is mentioned in the description. All commands and options are case-sensitive.

See Also
Scrubbing Items from the File or Item Cache
Option Description
--items, -i Runs the scrubbing operation only on the item cache. The item cache contains items that reference static repository versions. This can include links to physical files in the file cache. --items can be abbreviated as -t.
Note: The default for the sws scrub command is to process both the item and file cache. Specify this option if you do not want to process the file cache.
--files, --f Runs the scrubbing operation for the file cache only. The file cache contains the data files in the item and metadata files. --files can be abbreviated as -f.
Note: The default for the sws scrub command is to process both the item and file cache. Specify this option if you do not want to process the item cache.
--verbose, -v Display verbose output. When the --verbose option is not specified, the command returns a success message that includes the number of items and files removed. When the --verbose option is specified, the output also includes the cache paths scanned, names of item directories, and names of the files removed.--verbose can be abbreviated as -v.
--dryrun, -d Identifies the items and files that the operation removes, but does not delete them. --dryrun can be abbreviated as -d.
Tip: The --dryrun option paired with the --verbose option provides a list of items and files that are removed.
--age, -a Specifies the number of days without use before files in the file cache are considered obsolete. If the age option is not provided, the system looks for a value in dsrepo config. If there is no dsrepo config option set, the default age is 28 days.
Note: This option is not used for the item cache. Items are purged from the item cache when all of their files are obsolete or the item was removed from the workspace.
--help, -h Displays simplified help focused on the most useful information.--help can be abbreviated as -h.
path Specify specific root path caches. If this option is not specified, the command runs on the defined cache directories.