Skip to contents

This functions is a wrapper around unlink() that can be used to delete all .osm.pbf and .gpkg files in a given directory.

Usage

oe_clean(download_directory = oe_download_directory(), force = FALSE)

Arguments

download_directory

The directory where the .osm.pbf and .gpkg files are saved. Default value is oe_download_directory().

force

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.

Value

The same as unlink().

Examples

# Warning: the following removes all files in oe_download_directory()
if (FALSE) {
oe_clean()}