Remove unused doc elements.