powered by
This functions is a wrapper around unlink() that can be used to delete all .osm.pbf and .gpkg files in a given directory.
unlink()
.osm.pbf
.gpkg
oe_clean(download_directory = oe_download_directory(), force = FALSE)
The same as unlink().
The directory where the .osm.pbf and .gpkg files are saved. Default value is oe_download_directory().
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.
pbf
gpkg
# Warning: the following removes all files in oe_download_directory() if (FALSE) { oe_clean()}
Run the code above in your browser using DataLab