ITP - files - dummy_file.txt 2

There comes a time when a file is not needed, in which case we want to
delete it. We can do that by passing the name or reference to a file we
want to delete to File.delete. Let's see it in action:

irb :001 > File.new("dummy_file.txt", "w+")
 => #<File:dummy_file.txt>
irb :002 > File.delete("dummy_file.txt")
 => 1

Be careful, this command can be dangerous as it totally deletes the file
from your file system.