remove metadata from index when doing batch delete of metadata.