How to delete Geth Chaindata

If your node is encountering errors, not syncing, or has stopped functioning, you may need to delete certain folders and resync your node.

This is particularly useful if you encounter errors such as:

  • Stuck for a long time at: Syncing: chain download in progress
  • Stuck for a long time at: Head state missing repairing
  • The system cannot find the file specified.
  • Failed to store last block's head
  • Node process finished
  • Block Error

Follow these steps to troubleshoot and resolve the issue:

  1. Stop your node.
  2. Navigate to the folder in your installation directory: gethDataDirFastNode/geth.
  3. Delete the following four folders:
    • chaindata
    • ethash
    • nodes
  4. Once these folders are deleted, you can restart your node.

This process will result in a resync of your node, which should be completed in a few hours.

If you have any suggestions for improvements, please let me know - ETCMC - Exodus

Next Post Previous Post