Delete top level items when removing them

This fixes a bug where top level items became more and more