R: Delete cached files

cache_delete {rerddap} | R Documentation

## Delete cached files

### Description

Delete cached files

### Usage

    cache_delete(x, force = FALSE)

    cache_delete_all(force = FALSE)

### Arguments

`x` | File names
`force` | (logical) Should files be force deleted? Default: `FALSE`

### See Also

Other cache: `cache_details`, `cache_list`, `cache_setup`

### Examples

    ## Not run:
    # delete files by name in cache
    # cache_delete('9911750294a039b8b517c8bf288978ea.csv')
    # cache_delete(c('9911750294a039b8b517c8bf288978ea.csv',
    #                'b26825b6737da13d6a52c28c8dfe690f.csv'))

    # You can delete from the output of griddap or tabledap fxns
    ## tabledap
    (table_res <- tabledap('erdCinpKfmBT'))
    cache_delete(table_res)

    ## griddap
    (grid_res <- griddap('noaa_esrl_027d_0fb5_5d38',
     time = c('2012-01-01','2012-06-12'),
     latitude = c(21, 18),
     longitude = c(-80, -75)
    ))
    cache_delete(grid_res)

    ## End(Not run)

[Package rerddap version 0.4.2 Index]