Running a server · How the ledger runs

Configure Online Deletion

In plain words

Online deletion is how an xrpld server removes old ledger history while it keeps running. By default it deletes history older than the most recent 2000 ledger versions, about 15 minutes of history, and this page shows how to keep more or less.

Written by zerps in plain words, from the source linked below.
Section
Infrastructure

What you need

You need a supported operating system: Ubuntu Linux, Red Hat Enterprise Linux or CentOS. The xrpld server is installed with online deletion enabled, which is the default on a recommended platform. Your server needs enough disk space for the history you choose.

The steps in short

Decide how many ledger versions to store. New ledger versions are usually validated 3 to 4 seconds apart, so the number matches roughly a length of time. In the node_db stanza of the config file, set online_delete to the minimum number of ledger versions to keep after deletion runs. Restart the xrpld service and wait for it to sync, which may take between 5 and 15 minutes.

How much space

With automatic deletion, the server typically runs deletion when it has gathered about twice the number you set. So you should have enough disk space to store twice as many ledgers as you tell it to keep.

Checking it works

Use the server_info method to look at the complete_ledgers range from time to time. The number of ledgers available should slowly rise to twice your online_delete value, then drop when deletion runs.

Good to know

An optional setting, max_waiting_ledgers, limits how long the deletion process waits for the server to resync. Its minimum is 64 and it defaults to your online_delete value. If deletion is often interrupted, the page suggests raising your system specs, storing less history, or scheduling deletion with advisory deletion.

Source: xrpl.org. Read 6 December 2026.

Zerpedia states what the source says, in plain words, and gives no opinion. How Zerpedia is made

zerps Trading tokens on the XRP Ledger carries risk, including total loss. zerps is a self-custodial interface; it does not hold funds, give advice, or execute trades on your behalf.