Next: , Previous: Setting Fields, Up: Editing Fields

5.3 Deleting Fields

You can delete fields using recset's -d flag. For example, if we wanted to delete the Inspected field which we introduced above, we could do so as follows:

     $ recset -t Item -f Inspected -d stock.rec

This would delete all fields named Inspected from all records of type Item. It may be that, we only wanted to delete the Inspected fields from records which satisfy a certain condition. The following would delete the fields only from items whose Expiry date was before 2 January 2010:

     $ recset -t Item -e 'Expiry << "2 January 2010"' -f Inspected -d stock.rec