This command in the linked instructions is not recognized on my desktop but is on my laptop. Both were up-to-date prior to this most recent 3/30 updates; and both are KDE Plasma and Kernel 6.12 on stable branch.
If you run paccache -rvuk0 you’re prompted for privilege using polkit only when needed - it’s more transparent and follows the principle of least privilege… though it might be more convenient to use sudo for scripts.
You could also think about adding a pacman hook to automate the cleanup.