improved index deletion / clearing and added a dryrun option