Skip to contents

Removes cached extraction results from disk. Optionally filter by age to keep recent results.

Usage

gee_clear_cache(older_than = NULL)

Arguments

older_than

Numeric. Only remove cache files older than this many days. Default NULL removes all files.

Value

Invisibly returns the number of cache files removed.

See also

gee_status() to check cache size.

Other utilities: gee_datasets(), gee_register_dataset()

Examples

if (FALSE) { # interactive()
# Clear everything
gee_clear_cache()

# Clear only files older than 7 days
gee_clear_cache(older_than = 7)
}