# File lib/kirbybase.rb, line 1189 def delete_records(table, recs) with_write_locked_table(table) do |fptr| recs.each do |rec| # Go to offset within the file where the record is and # replace it with all spaces. write_record(table, fptr, rec.fpos, ' ' * rec.line_length) incr_del_ctr(table, fptr) delete_from_indexes(table, rec, rec.fpos) end # Return the number of records deleted. return recs.size end end