SweepTombstones
SweepTombstones hard-removes up to `limit` soft-deleted threads in a channel (and all of their remaining reply state), reclaiming AVL storage so that post+delete spam can no longer accrete permanent state (B2).
Admin role only. The chain refunds the storage deposit of freed bytes to the transaction that frees them (gnoland-1 restricts no denom), and a thread's remaining replies were paid for by their authors. Restricting the sweep keeps thread authors and outsiders from collecting other members' deposits.
Bounded + idempotent: each soft-deleted thread holds at most MaxRepliesPerThread reply nodes, so keep `limit` small (1–5) to stay well within block gas; re-running drains the next batch and stops at 0. Returns the number of threads swept.
Command
# WARNING: This command is running in an INSECURE mode.
# It is strongly recommended to use a hardware device for signing
# and avoid trusting any computer connected to the internet,
# as your private keys could be exposed.
gnokey maketx call -pkgpath "gno.land/r/samcrew/memba_dao_channels_v2" -func "SweepTombstones" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -chainid "gnoland-1" -remote "https://rpc.gno.land" ADDRESSgnokey query -remote "https://rpc.gno.land" auth/accounts/ADDRESS
gnokey maketx call -pkgpath "gno.land/r/samcrew/memba_dao_channels_v2" -func "SweepTombstones" -args $'' -args $'' -gas-fee 1000000ugnot -gas-wanted 1_000_000_000 -send "" -broadcast=false ADDRESS > call.tx
gnokey sign -tx-path call.tx -chainid "gnoland-1" -account-number ACCOUNTNUMBER -account-sequence SEQUENCENUMBER ADDRESS
gnokey broadcast -remote "https://rpc.gno.land" call.tx