filesstrings (version 3.4.0)

remove_dir: Remove directories

Description

Delete directories and all of their contents.

Usage

remove_dir(...)

dir.remove(...)

Value

Invisibly, a logical vector with TRUE for each success and FALSE for failures.

Arguments

...

The names of the directories, specified via relative or absolute paths.

Examples

Run this code
if (FALSE) {
sapply(c("mydir1", "mydir2"), dir.create)
remove_dir(c("mydir1", "mydir2"))
}

Run the code above in your browser using DataLab