If you filed for divorce, you can request that the court dismiss the case. However, if the divorce is already in process and your spouse has agreed to the divorce, you probably both have to petition the court for a dismissal.