Running a server · How the ledger runs

Configure Advisory Deletion

In plain words

Advisory deletion makes an xrpld server delete old ledger history only when a command tells it to. You schedule that command for quiet hours, so the clean-up is less likely to slow the server at busy times.

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

What you will do

The default config file makes the server delete outdated history automatically as new ledger versions arrive. Here you switch that to deletion on request and set a daily schedule for the request.

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, and a cron daemon is running. Cron is a tool that runs commands at set times. You also need enough disk space for your chosen history and to know which hours are least busy for your server.

The steps in short

In the node_db stanza of the config file, set advisory_delete to 1. Set online_delete to the minimum number of ledger versions to keep after deletion runs. Test the can_delete method, which prompts the server to run online deletion. Then set your cron daemon to run that command at a scheduled time, based on the server's time zone, and restart the xrpld service.

Checking it works

Use the server_info method now and then to look at the complete_ledgers range. Its lowest ledger index should go up after deletion. Deletion may take several minutes, depending on how busy the server is and how much history is deleted at a time.

If nothing happens

Check that the user who set up the cron job may run xrpld as a commandline client. Check the syntax and time of the cron job and the path to the xrpld executable. Log messages that begin with SHAMapStore:WRN can mean deletion is being interrupted because the server fell out of sync with the network.

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.