To add onto @yawaramin’s answer, you can completely remove DkML including the opam root and global switches with Problem with platform tools installation - #2 by jbeckford.
I don’t believe 5.1.1 works with (EDIT:) Windows MSVC, and I’m unsure about trunk (but that should work).