Delete type "doc" if no type specified