# How to rebuild the ledger

**URL:** <https://forum.universal-credit-system.org/t/how-to-rebuild-the-ledger/125>\
**Category:** Documents and Sources\
**Created:** [August 16, 2025, 2:09pm UTC](https://forum.universal-credit-system.org/t/how-to-rebuild-the-ledger/125 "2025-08-16T14:09:14Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![m0e](https://forum.universal-credit-system.org/user_avatar/forum.universal-credit-system.org/m0e/32/74_2.png) [@m0e](https://forum.universal-credit-system.org/u/m0e)\
**Post date:** [August 16, 2025, 2:09pm UTC](https://forum.universal-credit-system.org/t/how-to-rebuild-the-ledger/125/1 "2025-08-16T14:09:14Z")

</div>

**This thread is about how to rebuild the ledger**

A rebuild of the ledger might be necessary in case it is corrupted or due to a bug, but also for integrity checks. The ledger and related data are stored in the user’s userdata folder and represents your ‘view’ on the tangle.

To trigger a rebuild of the ledger for **a given user** you can execute ucs\_client.sh with the additional parameter `-new_ledger` :

`./ucs_client.sh ` **`-new_ledger`** ` -action […]`

As an alternative you can simply remove all \*.dat files in the user’s userdata folder:

`rm userdata/YOURADDRESS/*.dat`

To trigger a rebuild of the ledger for **all users** simply remove all \*.dat files in the user’s userdata folders:

`rm userdata/*/*.dat`
