no dejar títere con cabeza
Literally meaning "not leave a puppet with a head", the term alludes to a scene in Don Quixote (Volume 2 Chapter 26) in which in one of Don Quixote's daydreams he mistakes dolls for a maiden's real captors and thus cuts off all their heads.