# How to reset (recalculate) ID in the table?

**URL:** <https://discuss.tryton.org/t/how-to-reset-recalculate-id-in-the-table/3381>\
**Category:** Developer\
**Created:** [October 20, 2020, 4:26pm UTC](https://discuss.tryton.org/t/how-to-reset-recalculate-id-in-the-table/3381 "2020-10-20T16:26:07Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![banknote](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/banknote/32/980_2.png) [@banknote](https://discuss.tryton.org/u/banknote)\
**Post date:** [October 20, 2020, 4:26pm UTC](https://discuss.tryton.org/t/how-to-reset-recalculate-id-in-the-table/3381/1 "2020-10-20T16:26:07Z")

</div>

After a bunch of tests of my Wizard, the ID jumped to high numbers.  
I know how to do that “manually” directly in Postgres, with that — that will destruct the relations. Hence, I am thinking — is there a way to rebuild ids (or just codes) to consequent numbers from inside Tryton?

 ![image](https://discuss-cdn.tryton.org/uploads/default/original/2X/9/984199524bf31e3f032d23be4bf2e4622d670b83.png)

---

<div class="post-metadata">

**Author:** ![ced](https://discuss-cdn.tryton.org/user_avatar/discuss.tryton.org/ced/32/1237_2.png) [@ced](https://discuss.tryton.org/u/ced)\
**Post date:** [October 20, 2020, 4:39pm UTC](https://discuss.tryton.org/t/how-to-reset-recalculate-id-in-the-table/3381/2 "2020-10-20T16:39:40Z")

</div>

> [@banknote](#):
>
> is there a way to rebuild ids (or just codes) to consequent numbers from inside Tryton?

No because there is no point to do such think. IDs are internal number just for the code, we do not care about them.
