How to delete all revisions older than 20 days?

Will this work: duplicacy prune -keep 0:20

Yes; you also need either -a flag to prune all snapshot IDs, or specify a specific snapshot ID.

When in doubt, you can always run the command with -dry-run flag, it will do everything except actually deleting anything.