The Gestapo's transfer to Himmler was a prelude to the Night of the Long Knives, in which most of the SA leadership were arrested and subsequently executed.[57] The SS and Gestapo carried out most of the killings. On 20 July 1934, Hitler detached the SS from the SA, which was no longer an influential force after the purge.