make --delete-ghosts optional