Online deletion
Online deletion is a feature that lets an XRP Ledger server delete its local copy of old ledger versions. This keeps disk usage from growing rapidly over time.
In plain words
The server removes only its own stored copy of old history. The default config file sets online deletion to run automatically. It can also be configured to run only when prompted.
How it works
In the config file, the online_delete setting is the minimum number of ledger versions to keep after deletion. With automatic deletion, the server typically runs deletion when it has gathered about twice that many. So you should have enough disk space for twice as many ledgers as you set it to keep.
Why not all the time
Data that does not change from version to version is stored only once. Part of the work is finding which records are used only by outdated ledger versions. This takes time and affects disk activity, so the server cannot delete old data every time it closes a new ledger.
Good to know
New ledger versions are usually validated 3 to 4 seconds apart, so the number of versions you keep matches roughly an amount of time. With advisory deletion enabled, the can_delete method tells the server the latest ledger version that may be deleted.
Source: xrpl.org, xrpl.org, xrpl.org. Read 6 December 2026.
Zerpedia states what the source says, in plain words, and gives no opinion. How Zerpedia is made