R eliminar directorio

unlink("mydir", recursive=TRUE)
Careful Curlew