Add recursive deletion of spaces

 [Finishes #47408569]