LogoLogo
  • Welcome
    • About ENI
  • Getting Started
    • Quickstart
      • Account Structure
      • Token Standards
      • Gas
    • Divergence from Ethereum
    • Transactions
      • Creating Transaction
    • Governance
      • Proposals
    • Oracles
  • Build
    • Setup and Installation
    • Smart Contracts
      • EVM (General)
      • EVM (CLI)
      • Querying State
    • Frontend Development
      • Overview
      • How to Deploy Your First dApp
    • Ecosystem
      • Tools and Resources
      • Resources
  • Node
    • Getting Started
    • Node Operators Guide
    • Validator Operations Guide
    • Advanced Configuration & Monitoring
    • Technical Reference
  • Reference
    • Overview
    • enid
    • CLI
      • enid add-genesis-account
      • enid blocktest
      • enid collect-gentxs
      • enid compact
      • enid config
      • enid debug
      • enid export
      • enid gentx
      • enid help
      • enid init
      • enid keys
        • enid keys delete
        • enid keys add
        • enid keys export
        • enid keys import
        • enid keys list
        • enid keys mnemonic
        • enid keys parse
        • enid keys show
      • enid latest_version
      • enid migrate
      • enid prune
      • enid query
        • enid query accesscontrol
        • enid query upgrade
        • enid query account
        • enid query auth
        • enid query bank
        • enid query block
        • enid query authz
        • enid query distribution
        • enid query epoch
        • enid query evidence
        • enid query evm
        • enid query feegrant
        • enid query ibc-transfer
        • enid query gov
        • enid query ibc
        • enid query mint
        • enid query oracle
        • enid query params
        • enid query slashing
        • enid query staking
        • enid query tendermint-validator-set
        • enid query tokenfactory
        • enid query tx
        • enid query txs
      • enid rollback
      • enid start
      • enid status
      • enid tendermint
      • enid tools
      • enid tx
      • enid validate-genesis
      • enid version
Powered by GitBook
On this page
  1. Reference
  2. CLI

enid prune

enid prune

Prunes the application's historical state by keeping recent heights and deleting older ones.
Pruning options are provided via the `--pruning` flag or `--pruning-keep-recent`.

For the `--pruning` flag, the options are as follows:

- default: Keeps the most recent 362880 states
- nothing: Saves all historical states; nothing will be deleted (i.e., archive node)
- everything: Keeps only the most recent 2 states
- custom: Allows manual specification of pruning options via `pruning-keep-recent`.

In addition to pruning options, the database home directory and backend type should be specified using the `--home` and `--app-db-backend` flags. Valid app-db-backend types include `goleveldb`, `cleveldb`, `rocksdb`, `boltdb`, and `badgerdb`.

Usage:
  enid prune [flags]

Example:
prune --home './' --app-db-backend 'goleveldb' --pruning 'custom' --pruning-keep-recent 100 --pruning-keep-every 10 --pruning-interval 10

Flags:
      --app-db-backend string      Database type for the application and snapshot database
      --chain-id string            Chain ID
  -h, --help                       Help information for prune
      --home string                Database home directory
      --pruning string             Pruning strategy (default|nothing|everything|custom) (default "default")
      --pruning-interval uint      Height interval to delete pruned heights on disk (ignored if pruning is not 'custom'),
                                    This option is retained for compatibility with full pruning options (default 10)
      --pruning-keep-every uint    Offset heights retained on disk after 'keep-every' (ignored if pruning is not 'custom'),
                                    This option is retained for compatibility with full pruning options
      --pruning-keep-recent uint   Number of recent heights to keep on disk (ignored if pruning is not 'custom')

Global Flags:
      --log_format string   Log format (json|plain)
      --log_level string    Log level (trace|debug|info|warn|error|fatal|panic)
      --trace               Print the full stack trace on error
Previousenid migrateNextenid query

Last updated 2 months ago