added delete before addtoindex
added jmx call to delete by if prefix