This procedure installs a significant amount of software, almost all of it can be removed easily. However, some of the Apple Command Line Tools, part of Xcode may remain. There is no problem leaving these small parts installed, but to restore to a point where nothing was installed a backup is required before starting this procedure.
Upgraded macOS or Xcode?
Prerequisites Previously Installed Differently?
If prerequisites were previously installed using methods other than described here, there may be problems.