delete_mirror: Delete a deposit mirror

View source: R/delete_mirror.R

delete_mirrorR Documentation

Delete a deposit mirror

Description

This function will delete all mirrored files stored locally.

Usage

delete_mirror(deposit_id, cache_type = NULL, cache_dir = NULL)

Arguments

deposit_id

numeric. The Zenodo deposit id.

cache_type

character. Use temporary to a session temporary folder, persistent for a persistent cache folder or NULL to use the environment default. Check the section Cache Type for more details.

cache_dir

character. User specified cache directory for persistent cache type.

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)


zendown documentation built on May 29, 2024, 4:12 a.m.