How-to for developers · Accounts, wallets and keys

Delete an Account

In plain words

This guide shows how to delete an account from the XRP Ledger. You first check that the account meets the requirements for deletion, then send an AccountDelete transaction, and the account's remaining XRP goes to an address you choose.

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

What you need

You need a basic understanding of the XRP Ledger, a client library such as xrpl.js, a Testnet account to delete and an address to receive the remaining XRP. An account you have just created must wait about 15 minutes before it can be deleted.

Checks before deleting

Get the account's info from the latest validated ledger. Its Sequence number plus 255 must be lower than or equal to the ledger index. Its OwnerCount must be 1000 or fewer. Its XRP balance must cover the special transaction cost of deleting, which equals the incremental owner reserve. The sum of FirstNFTokenSequence and MintedNFTokens plus 255 must also be lower than or equal to the current ledger index. And every NFT the account issued must be burned, so MintedNFTokens must not be larger than BurnedNFTokens.

If a check fails

If a sequence number is too low, wait for the ledger index to advance and try again. About 15 minutes should be enough. If the account owns too many objects or has issued NFTs outstanding, remove them. If it does not have enough XRP, you can send it some.

Deletion blockers

Some types of ledger entry block an account from being deleted. Find them with the account_objects method and its deletion_blockers_only setting. Some can be removed by sending other transactions. A RippleState entry, for example, may go once you bring your balance to zero and use a TrustSet transaction to return your settings to the default state.

Delete the account

Send the AccountDelete transaction. Its cost is much higher than normal, so the guide suggests the fail hard setting. That stops the server from relaying a transaction that provisionally fails, which can save you the cost. When you compare amounts, use the same unit: 1 XRP is 1 million drops, and one drop is the smallest unit of XRP.

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.