Cleaning up your cluster
Assuming you are not starting the book at this chapter, your cluster probably has many tasks, pipelines, runs, and other Tekton-related objects in it. To reproduce an authentic environment where you would deploy your pipeline, you will need to start from a clean slate. In this section, you will remove everything you've created so far. In fact, you will go as far as completely deleting your cluster and creating a fresh new one. To do so, from your terminal, stop minikube:
$ minikube stop Stopping node "minikube" ... 1 nodes stopped.
Once minikube is stopped, you can delete the virtual machine used by minikube to store your Kubernetes cluster. This will ensure that you start from a brand new cluster the next time you start this tool:
$ minikube delete 🔥 Deleting "minikube" in kvm2 ... 💀 Removed all traces of the "minikube" cluster.
Your cluster has officially been destroyed. You can now restart...