> > invisible(lapply( list.files( "DeleteThis" ), function(x) > > file.remove(paste("DeleteThis", x, sep="/" )) )) > > Oh, dear! file.path() exists for a reason, and file.remove is > vectorized. Try > file.remove(dir("DeleteThis", full.names=TRUE)) argh, very embarassing to have asked this... ;-(