To reduce the storage size for the blockchain, Prune the blockchain up to a given block. Returns the last block pruned. The wallet must be launched in prune mode with disk working space reserved, at least 550 MB, here with 2 GB of working space:
Then you can give the command
If your wallet accepts incoming connections (over 8 peers) then don’t use this command.