def destroy(force = false)
      if (!force && file =~ /\.yardoc$/) || force
        if File.file?(@file)
          # Handle silent upgrade of old .yardoc format
          File.unlink(@file)
        elsif File.directory?(@file)
          FileUtils.rm_rf(@file)
        end
        true
      else
        false
      end
    end
def destroy(force = false)
      if (!force && file =~ /\.yardoc$/) || force
        if File.file?(@file)
          # Handle silent upgrade of old .yardoc format
          File.unlink(@file)
        elsif File.directory?(@file)
          FileUtils.rm_rf(@file)
        end
        true
      else
        false
      end
    end
Deletes the .yardoc database on disk

 @param [Boolean] force if force is not set to true, the file/directory
   will only be removed if it ends with .yardoc. This helps with
   cases where the directory might have been named incorrectly.
 @return [Boolean] true if the .yardoc database was deleted, false
   otherwise.