Home
Ruby
ActiveRecord
Array
CGI
Class
Collections
Database
Date
Design Patterns
Development
File Directory
GUI
Hash
Language Basics
Method
Network
Number
Rails
Range
Reflection
Statement
String
Threads
Time
Tk
Unit Test
Windows Platform
XML
Menu
Call system function to delete a folder : Utilities « File Directory « Ruby
Ruby
File Directory
Utilities
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