This functions is a wrapper around unlink()
that can be used to delete all
.osm.pbf
and .gpkg
files in a given directory.
oe_clean(download_directory = oe_download_directory(), force = FALSE)
The directory where the .osm.pbf
and .gpkg
files are saved. Default value is oe_download_directory()
.
Internal option. It can be used to skip the checks run at the
beginning of the function and force the removal of all pbf
/gpkg
files.
The same as unlink()
.
# Warning: the following removes all files in oe_download_directory()
if (FALSE) { # \dontrun{
oe_clean()} # }