How to Delete all Pods in a ReplicaSet

I recently got into the Cloud Native Foundations Scholarship Program by Udacity, and with that, my day-to-day interaction with Kubernetes has increased. The exposure is good because I am learning Kubernetes and patching problems and sharing some tricks to solve my problems here.

One of them is to delete all pods in a ReplicaSet. I went through many StackOverflow questions with one-line finalizers that would do the job instantly, but it was all trial and error with 20 commands to find the one. In addition to that, pasting random finalizers that you don’t understand on the terminal is not recommended. Also, even if I am a massive fan of Googling stuff out, I get tired of Googling the same queries 10 times.