Ruby Delete File

[Solved] Ruby Delete File | Ruby - Code Explorer | yomemimo.com
Question : ruby delete file

Answered by : nico-hahn

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

Source : | Last Update : Mon, 13 Jun 22

Answers related to ruby delete file

Code Explorer Popular Question For Ruby