Delete old units when duplicating the template