ForNext
Only Do What Only You Can Do
196. remove directory and contents
Hyperpolyglot Interpreted Languages: PHP, Perl, Python, Ruby より (2012.05.08)
VBScript
JScript
Perl
use File::Path 'remove_tree'; remove_tree "/tmp/foodir";
PHP
none
Python
import shutil shutil.rmtree('/tmp/foodir')
Ruby
require 'fileutils' FileUtils.rm_rf("/tmp/foodir")