It will be far simpler to reinstall. However, if you insist, you could look at the contents of the X install sets, & script removal of each & every file, but you will need to reset machdep.allowaperture as well.

As an/the administrator to your system(s), you should be able to state at any time (with no reservation...) just what is/are the state of your system(s). Gutting the filesystem of major components by hand isn't foolproof.

I am not able to find the reference but I believe that some of the base applications have been compiled with X dependencies - you can open up quite a can of worms.

Section 15.4.1 may be what you are recalling, & knowing how daemonfowl likes to build his own ports, the warning needs to be emphasized:

Code:

Another common failure is a missing X11 installation. Even if the port you try to
build has no direct dependency on X11, a subpackage of it or its dependencies
may require X11 headers and libraries. Building ports on systems without X11 is
not supported, so if you insist on doing so, you are on your own to figure it
out. For many ports, there are, however, "no_x11" flavored packages available,
which you can install without needing X11 on your system.

Ocicat , thanks you so much !
smart of you to quote the section .. it helped me decide once for all to never think of excluding X sets .. :-) ..
Thanks Shep ! your point was productive
I love this BSD-Lore Cradle called DaemonForums ..