filesstrings (version 0.4.0)

RemoveDirs: Remove directories.

Description

Delete directories and all of their contents.

Usage

RemoveDirs(dirs)

Arguments

dirs

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

Value

Invisibly, a logical vector with TRUE for each success and FALSE for failures. See base::unlink.

Examples

Run this code
setwd(tempdir())
sapply(c("mydir1", "mydir2"), dir.create)
RemoveDirs(c("mydir1", "mydir2"))

Run the code above in your browser using DataLab