Assuming that the Bankruptcy case has not yet been completed and discharged, a person may file a “motion to dismiss.”
There is no official form for this motion; rather, simply submit a statement to the District Bankruptcy Court indicating that you wish to dismiss your case, along with a brief statement as to the reasons behind the decision.
The judge must rule on the request, so filing the motion in no way “cancels” the bankruptcy case.