Delete index content accordingly