Call system function to delete a folder : Utilities « File Directory « Ruby






Call system function to delete a folder

system("rm", "/tmp/file1")
system("rm /tmp/file2")

 








Related examples in the same category

1.delete a folder recursively
2.Find files
3.Delete with condition
4.Get free disk space under unix with df command
5.Get free disk space under windows with dir command
6.Showing Line Numbers
7.Delete folder older than a certain time
8.Parse line: value|value
9.Change a | delimited file