delete_mirror {zendown}R Documentation

Delete a deposit mirror

Description

This function will delete all mirrored files stored locally.

Usage

delete_mirror(deposit_id, cache_type = NULL)

Arguments

deposit_id

numeric. The Zenodo deposit id.

cache_type

character. If NULL, the package will check the enviroment variable zendown_cache_type setting and use it. If zendown_cache_type is not set, the function will default to a temporary cache. The argument can be set to temporary to store the cache in a temporary system folder and persistent to store the cache in a persistent system folder.

Value

No return value. The function deletes mirrored on the system.

Examples


# https://zenodo.org/records/10959197
file_path <- zen_file(10959197, "iris.rds")
print(file_path)
file.exists(file_path)
delete_mirror(10959197)
file.exists(file_path)


[Package zendown version 0.0.2 Index]