<p>You can stop bitcoind, and delete the <code>peers.dat</code> file in the data directory. On next startup, bitcoind will start a new one, by seeding from DNS seeds and other means.</p>
<p>Why, though? Generally the peers database you have will be better quality than the new initial one you get.</p>

CC BY-SA 4.0
2022-06-22T13:59:09.533Z
2022-06-22T13:59:09.533Z
Pieter Wuille
<p>How to clear bitcoind's peer list? (also containing peers in the past)</p>
<p>I didn't find an RPC command for it, is it stored in a file?
Where?</p>

<bitcoin-core><peers><peer-discovery>
How to clear peer list?
Vincent Alex
# How to clear peer list?

(Asked by: username_0 on 2022-06-22)

How to clear bitcoind's peer list? (also containing peers in the past)

I didn't find an RPC command for it, is it stored in a file?
Where?

**Tags:** bitcoin-core, peers, peer-discovery


---

## 1 answers

### Answer by username_1 on 2022-06-22. Score: 3 | Accepted answer

You can stop bitcoind, and delete the `peers.dat` file in the data directory. On next startup, bitcoind will start a new one, by seeding from DNS seeds and other means.

Why, though? Generally the peers database you have will be better quality than the new initial one you get.


---

