When uninstalling and reinstalling Visual FoxPro, the VFPClean.app tool can be used to make sure all core Xbase and other files are set appropriately.
VFPClean is part of XSource, the source files for various Visual FoxPro components. The license governing XSource can be found in the XSource_EULA.txt included with all of the XSource releases.