How to undo the achievement of a goal?
Unfortunately, this isn't possible yet. A request has been made here. Hopefully, the maintainers will provide this feature in the future.

If someone gives a working solution later on, I'll mark it as answer instead.