remove unused type in documents