require 'fileutils' here = File.dirname(__FILE__) there = defined?(RAILS_ROOT) ? RAILS_ROOT : "#{here}/../../.." puts "Removing KaomoHelper..." FileUtils.rm("#{there}/config/ime_stdl_utf8.yml") puts "Done."