Thanks for the comment!
Shapes must lose all their hp to be destroyed. You can, of course, upgrade your damage in the shop to destroy then faster before they "escape".
You can upgrade shapes in the "better shapes" shop, which will add new types of shapes that are stronger but give more money and exp.
The fact that you didn't manage to destroy a shape is because you probably should have improved your damage...