How to end level when all enemies are destroyed

Is there a way that you could show me what that would look like?