delete function for post orders_state