You can write a script based on the tblWarranty and tblWarrantyDetails database tables, though it is still not entirely clear to me why you would want to clear these tables. You can rescan warranty details under Configuration\Server Options, without deleting the data first.