delete order modified code