You may withdraw/dismiss your Petition for Order of Protection at any time before the court hearing happens. You will need to let the clerk know that you want to do this.
If you have already had a hearing and want to dismiss the Order of Protection, you will need to file a "Motion to Dismiss" the Order of Protection. The Court will schedule a new hearing that you will be required to attend. You will have to tell the judge that you want to dismiss the Order. The judge may ask you questions about your decision.