Skip to contents

Removes all cached responses from the cache directory.

Usage

brapi_cache_clear(con)

Arguments

con

A brapi_connection() object with caching enabled.

Value

Invisibly returns con.

Examples

con <- brapi_connection("https://test-server.brapi.org")
con <- brapi_cache_enable(con, dir = tempdir())
#>  Caching enabled at /tmp/RtmpOFx2X8 (TTL: 3600s)
brapi_cache_clear(con)
#> Warning: cannot remove file '/tmp/RtmpOFx2X8/bslib-e2359c44438f24fb0ed37106716d003a', reason 'Directory not empty'
#> Warning: cannot remove file '/tmp/RtmpOFx2X8/downlit', reason 'Directory not empty'
#>  Cleared 8 cached response(s).