Ruby 1.9.2 リファレンスマニュアル > ライブラリ一覧 > pathnameライブラリ > Pathnameクラス > delete
unlink
delete
self が指すディレクトリあるいはファイルを削除します。