How do I delete records from my CatBase database?
Deleting Records from your Database
There are several ways to delete data from your database. You can:
- Empty an entire table in one go
- Mark individual records for deletion, but leave them in the database
- Delete individual records immediately
- Delete all records from a table when you import data into it
Empty an entire table in one go
Sometimes you may want to just get rid of all your data and start afresh. This is easy to do:
- Make sure that all CatBase windows are closed. If a record is open in a window, CatBase won't be able to delete it
- Choose Zap Table from the Utilities menu
- Select the table you want to empty
- Click the Delete Records button
All the records in the table will be deleted, and the Record Number counter set back to 0.
Mark individual records for deletion or delete immediately?
You can choose whether to mark records for deletion or delete them immediately. This is useful if you want to be able to review what's been flagged for deletion before actually removing it from the database. This is controlled via an option in the Preferences. To change it:
- Make sure all CatBase windows are closed
- Version 6.74 or earlier: Choose System Preferences from the Adminmenu. Version 7: Select Admin and then choose Preferences
- Go to the Data Entry tab
- In the Data Deletion area, choose the appropriate radio button (Delete records immediately or Mark records for deletion)
- Note also the Row Colouring in Lists option. If this is selected, records that are marked for deletion will be highlighted in red, and records marked as Inactive will be highlighted in yellow in list views.
- Save the Preferences
Marking records for deletion
- Find the record or records you want to mark for deletion
- Select the record or records you want to delete
- Click on the trash can icon at the top of the window
- If you have Row colouring turned on, the records marked for deletion will be highlighted in red.
When you are ready to actually delete the marked records, choose Delete Records from Database under the Admin menu.
Deleting records immediately
To delete records immediately:
- Find the record or records you want to mark for deletion
- Select the record or records you want to delete
- Click on the trash can icon at the top of the window
- The records will be deleted.
Delete all records from a table when you import data into it
You can tell CatBase to empty a table immediately before importing new data into it. To do this:
- Create an Import Style or open an existing one
- Set up the parameters on the first page, if it's a new Import Style (choose your import fields and map them to the incoming data)
- Go to the Updates tab
- Choose the first radio button: Delete all records in the table before importing data
Did this article answer your question?
If it didn't, please use the Contact form to ask us! Or simply send an email to support@catbase.com.