delete obsolete markup