Cleanup Local IBGE Cache
ibge_microdata_cleanup_cachePreview and delete stale cached IBGE microdata files using age, size, or URL filters. Start with dry-run to see what would be removed before confirming deletion.
Instructions
Preview or delete selected files from the local IBGE microdata cache.
The tool only considers files under cacheRoot/ftp.ibge.gov.br and requires at least one filter such as olderThanDays, minBytes, or urlPrefix. It defaults to dryRun=true, so use it first to preview what would be deleted. Set dryRun=false only after the user explicitly agrees to delete the matched cached files.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| dryRun | No | Preview matching files without deleting them. Defaults to true. | |
| minBytes | No | Only match cached files at least this many bytes large. | |
| cacheRoot | Yes | Local cache root previously used with ibge_microdata_download_file. | |
| urlPrefix | No | Only match cached files whose official source URL starts with this ftp.ibge.gov.br prefix. | |
| olderThanDays | No | Only match cached files modified at least this many days ago. |