The _clear_orphaned_publish_dirs will clear out all the relative path directories up to, but not including the top-level http and https directories. I'm not entirely sure if other distributors are using them or not (iso, export, etc). However, I'm ok with empty legacy directories sitting there too, but I'm not the one that will have to deal with customers, so your call.