File Hapus Ruby

File.delete(path_to_file) if File.exist?(path_to_file)
SaltedCode