Se tronchi la tabella puoi usare la clausola RESTART IDENTITY alla fine. Esempio: TRUNCATE TABLE foo RESTART IDENTITY; TRONCARE LA DOCUMENTAZIONE