Delete the file with the path filepath. Used to delete files (images) associated with events, e.g. canopeo_image
Usage
delete_file(
filepath,
site = NULL,
block = NULL,
filepath_relative = FALSE,
base_folder = json_file_base_folder()
)
Arguments
- filepath
The path to the file which should be deleted.
- site
The site where the event took place
- block
The block where the event took place
- filepath_relative
Set to TRUE and supply site and block if filepath is relative to the events.json file. This allows the function to figure out the correct path to the file.
- base_folder
Included for testing reasons, the default value should otherwise be used