package commands import ( "github.com/spf13/cobra" tmcmd "github.com/tendermint/tendermint/cmd/tendermint/commands" ) var UnsafeResetAllCmd = &cobra.Command{ Use: "unsafe_reset_all", Short: "Reset all blockchain data", RunE: unsafeResetAllCmd, } func unsafeResetAllCmd(cmd *cobra.Command, args []string) error { cfg, err := getTendermintConfig() if err != nil { return err } tmcmd.ResetAll(cfg.DBDir(), cfg.PrivValidatorFile(), logger) return nil }