A sequence of acetamide directed oxidative Heck reaction and deacetylation-diazotation-Heck coupling allows the traceless removal of the acetamide group and its dual exploitation as a catalyst directing group and a leaving group.