As per Lawkidunya, to withdraw a civil case from court, you will need to file a motion or request with the court, explaining the reasons for the withdrawal and asking the court to dismiss the case.
This motion is typically called a “dismissal” or “withdrawal” of the case. In some jurisdictions, you may also need to file a notice of withdrawal with the court, which is a formal document that informs the court and the other party that you are no longer pursuing the case.
In order to withdraw a civil case from court, you will typically need the consent of the other party to the case, unless the case has not yet been served on the other party or the court has not yet issued a summons. If the other party objects to the withdrawal of the case, the court will consider their objections and decide whether or not to grant the withdrawal.
It’s worth noting that in some cases, the court may not grant a request to withdraw a civil case, especially if the case has already advanced to a certain point or if there are other considerations that make it appropriate for the case to proceed. If you are seeking to withdraw a civil case from court, it is generally a good idea to consult with an attorney to understand the specific steps you need to take and the potential consequences of doing so.