def self.delete_file
h = Hash.new
files = Dir.entries(File.dirname(__FILE__) + "/../../app/views/aaa")
i = 0
files.each do |x|
unless x == "." || x == ".." || x == ".rhtml"
h[i] = x
i += 1
end
end
for j in 0...h.length
file = File.dirname(__FILE__) + "/../../app/views/aaa/" + h[j].to_s
begin
File.delete(file)
rescue