# Reseting Transactions

If you get a corrupt database, or the node status is UnSync on the coti node alert bot then run the following code in order.

### Step1 - Script download and Script run.

Copy and right click to paste the following code in your VPS .

```
cd ~
rm -rf reset_transactions.sh
wget -O reset_transactions.sh https://raw.githubusercontent.com/Geordie-R/coti-node-upgrade/main/reset_transactions.sh && chmod +x reset_transactions.sh
./reset_transactions.sh "true"
```

### Step 2 - Reboot the cnode.service

```
sudo systemctl restart cnode.service
```

### Step 3 - Set reset.transactions back to false

```
./reset_transactions.sh "false"
```

Now just wait 10 minutes and then check both the [finally-checking-youre-up](https://cotidocs.geordier.co.uk/installing-the-node/finally-checking-youre-up "mention") and also try sending some token through your node.
