Actually, you can kill an enemy within their own command prompts without its ID, because it's inside an enemy, just kills self. All of the stuff requires an object ID, inside the object, will be cool to make it unnecessary, for example, when a projectile is launched, at 95% percent of probability, the projectile kills itself.
kill projectile
This should work with all ID objects, with all ID commands.