delete first then publish