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?

New contributor
Vincent Alex is a new contributor to this site. Take care in asking for clarification, commenting, and answering. Check out our Code of Conduct.

1 Answer 1


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.

Your Answer

Vincent Alex is a new contributor. Be nice, and check out our Code of Conduct.

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.