add publish message delete function