Delete one non-empty directory

rm(path, recursive=true), as explained in the manual:

If recursive=true is passed and the path is a directory, then all contents are removed recursively.

1 Like