diff --git a/app/models/key_pair.rb b/app/models/key_pair.rb index 54f306116..6cdfb076d 100644 --- a/app/models/key_pair.rb +++ b/app/models/key_pair.rb @@ -47,7 +47,7 @@ class KeyPair < ActiveRecord::Base end ensure # remove the directory. - FileUtils.remove_entry_secure dir + system "rm -rf #{dir}" end end