Skip to content

rspm evict#

Command to force cached storage file clean up

rspm evict [flags]

Examples#

  # Perform an eviction that will find cached files that haven't been accessed for a while (30 days by default) and remove them
  rspm evict

  # Perform an eviction that will find untracked cached files and and remove them
  rspm evict --type=sweep

  # Perform an eviction that will find untracked packages and remove them
  rspm evict --type=packages

  # Perform an eviction that find and delete all cached files
  rspm evict --type=clear

Options#

  -h, --help          help for evict
      --type string   The eviction type. Use 'normal', 'packages', 'sweep', or 'clear'. (default "normal")

Options inherited from parent commands#

  -a, --address string             The address of the remote server. If not specified, the PACKAGEMANAGER_ADDRESS environment variable is used.
  -c, --config string              Path to config file
      --insecure-ssl-skip-verify   If true, skip SSL certificate validation. This reduces the security that SSL normally provides.
  -o, --output-format string       Specify the output format 'human' for human-readable output or 'json' for JSON-encoded output. (default "human")
  -v, --verbose                    Provide additional output