To deselect, you have to press escape. To delete, you have to select the units and press the delete key, or whatever key you have assigned in the settings.
THANK YOU!