This function will delete all mirrored files stored locally.
Arguments
- deposit_id
numeric. The Zenodo deposit id.
- cache_type
character. Use
temporary
to a session temporary folder,persistent
for a persistent cache folder orNULL
to use the environment default. Check the section Cache Type for more details.- cache_dir
character. User specified cache directory for persistent cache type.
Examples
# https://zenodo.org/records/10959197
file_path <- zen_file(10959197, "iris.rds")
print(file_path)
#> /tmp/Rtmpy6qK26/zendown/10959197/iris.rds
file.exists(file_path)
#> [1] TRUE
delete_mirror(10959197)
#> ℹ The cache of deposit 10959197 was deleted
file.exists(file_path)
#> [1] FALSE