only recusively delete modules if all their parents are marked for deletion (PLAT-333)