R: Remove directories

remove_dir {filesstrings} | R Documentation

## Remove directories

### Description

Delete directories and all of their contents.

### Usage

    remove_dir(...)

    dir.remove(...)

### Arguments

`...` | 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.

### Examples

    ## Not run:
    sapply(c("mydir1", "mydir2"), dir.create)
    remove_dir(c("mydir1", "mydir2"))
    ## End(Not run)

[Package filesstrings version 3.1.0 Index]