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