forge cache clean
NAME
forge-cache-clean - Cleans cached data from ~/.foundry.
SYNOPSIS
forge cache clean [options] [--] [chains..]
DESCRIPTION
Removes files in the ~/.foundry/cache folder which is used to cache Etherscan verification status and block data.
OPTIONS
-b
--blocks
    One or more block numbers separated by comma with no spaces
--etherscan
    A boolean flag that specifies to only remove the block explorer portion of the cache
Common Options
-h
--help
    Prints help information.
EXAMPLES
- 
Remove the entire cache (also,
forge cache cleanis an alias for this)forge cache clean all - 
Remove the entire block explorer cache
forge cache clean all --etherscan - 
Remove cache data for a specific chain, by name
forge cache clean rinkeby - 
Remove cache data for a specific block number on a specific chain. Does not work if
chainisallforge cache clean rinkeby -b 150000 - 
Remove block explorer cache data for a specific chain. Does not work if
--blocksare specified.forge cache clean rinkeby --etherscan - 
Specify multiple chains
forge cache clean rinkeby mainnet - 
Specify multiple blocks
forge cache clean rinkeby --blocks 530000,9000000,9200000