check the doc id for type when deleted