Israel,
There isn't a function per-se. If yoi want to avoid going crazy waiting, your
best bet is to use CDatabase::ExecuteSQL("delete from Mytable") which will get
rid of all your records in the table.
An even faster option for very large tables is to drop the table and then
recreate it.
-Ronald-