I think he's asking if it's possible to make a level end when all robots are destroyed.
...that said, though I'm not well-informed on the subject, I've seen Oceanic Cove set up a situation where you have to destroy all enemies for the boss to "end", so it seems likely that you could rig something up to cause the level to end when all robots are destroyed as well.