api index cleanup