lib/omnibus/builder.rb
def delete(path, options = {})
      build_commands << BuildCommand.new("delete `#{path}'") do
        Dir.chdir(software.project_dir) do
          FileSyncer.glob(path).each do |file|
            FileUtils.rm_rf(file, options)
          end
        end
      end
    end
def delete(path, options = {})
      build_commands << BuildCommand.new("delete `#{path}'") do
        Dir.chdir(software.project_dir) do
          FileSyncer.glob(path).each do |file|
            FileUtils.rm_rf(file, options)
          end
        end
      end
    end
Delete the given file or directory on the system. This method uses the
 equivalent of +rm -rf+, so you may pass in a specific file or a glob of
 files.

 @param [String] path
   the path of the file to delete
 @param (see #mkdir)

 @return (see #command)