How do I reset a service in Kubernetes cluster?

I have a cluster with database and webapp. The cluster is used for UAT.
When I deploy a new version of webapp I need to reset the database.
How do I do that?

There are many ways to do this.

You can simply run a Kubernetes job before your deployment. Or an Argo Hook, or a Helm hook.

Or in Codefresh just have a “cleanup” step in your pipeline before the pipeline runs.