Skip to content

Ruby delete file

Delete a file is very simple..for example…Watch this script

require ‘fileutils’
FileUtils.touch ” example.rb”
File.exists? “example.rb”
File.delete “example.rb”
File.exists? “example.rb”

Only delete a file…


Share on Facebook

Post a Comment

Your email is never published nor shared. Required fields are marked *
*
*