make index cleanup more generic
OTS: Bruno
TESTED: removed old indexes on production
Merge pull request #1 from tinanguyent/master

make index cleanup more generic