How do you prune the database

How do you prune the scroll database? I stopped the geth service and then ran this command but i get this error everytime.

./geth --scroll --datadir "/home/validator/l2geth-datadir" snapshot prune-state
INFO [03-10|08:28:53.141] Maximum peer count                       ETH=50 LES=0 total=50
INFO [03-10|08:28:53.141] Smartcard socket not found, disabling    err="stat /run/pcscd/pcscd.comm: no such file or directory"
WARN [03-10|08:28:53.141] Disable transaction unindexing for archive node
INFO [03-10|08:28:53.141] Set global gas cap                       cap=50,000,000
INFO [03-10|08:28:53.141] Setting flag                             --l1.confirmations=finalized
INFO [03-10|08:28:53.141] Setting flag                             --l1.sync.startblock=18306000
INFO [03-10|08:28:53.141] Pruning disabled
INFO [03-10|08:28:53.141] Prefetch disabled
INFO [03-10|08:28:53.141] Allocated cache and file handles         database=/home/validator/l2geth-datadir/geth/chaindata cache=512.00MiB handles=524,288 readonly=true
INFO [03-10|08:28:53.791] Opened ancient database                  database=/home/validator/l2geth-datadir/geth/chaindata/ancient readonly=true
ERROR[03-10|08:28:53.807] Failed to open snapshot tree             err="missing or corrupted snapshot"
missing or corrupted snapshot