undo is great, didn’t know it exists!
Some kind of dry run for Pkg commands would be nice, what-if, or however it can be called.
I see there is also
pkg> add --preserve=all Example
all Preserve the state of all existing dependencies (including recursive dependencies)