The AI has a range limit. I find if I spam F into an \"empty\" part of space, I\'ll apparently target an asteroid or something that I can\'t even see, not even the target diamond. That effectively clears your target.
It\'s a kludge, but it works. I fully support your idea of having a PROPER clear target keybind, in order to eliminate the kludginess.