#2332 removing from index if it is the working or live
Merge pull request #2346 from dotCMS/issue-2332-deleting-oldversion-clears-index

#2332 removing from index if it is the working or live