def deleteRecords():
_tables=['auth_user',
'auth_group',
'auth_membership',
'auth_permisssion',
'auth_event',
'local_user',
'local_history']
for tbl in db.tables:
if not tbl._tablename in _tables:
db(tbl).delete()important thing: if not tbl._tablename in _tables this is just a shorter version: db(tbl).delete()

