The DB->truncate function is the standard interface for emptying a database of all records.
Copyright Sleepycat Software