Removes unused index key from database