def permanently_delete_records(dependent_records)
      dependent_records.each do |klass, ids|
        ids.each do |id|
          record = klass.unscoped.where(klass.primary_key => id).first
          next unless record
          record.deleted_at = nil
          record.destroy(:force)
        end
      end
    end
def permanently_delete_records(dependent_records)
      dependent_records.each do |klass, ids|
        ids.each do |id|
          record = klass.unscoped.where(klass.primary_key => id).first
          next unless record
          record.deleted_at = nil
          record.destroy(:force)
        end
      end
    end
permanently delete the records (i.e. remove from database)