refactor method deleteOrder