title: Kubernetes POD delete with Pattern Match or Wildcard
body: <p>When I am using below it deletes the running POD after matching the pattern from commandline: </p>
  
  <pre><code>kubectl get pods -n bi-dev --no-headers=true | awk '/group-react/{print $1}' | xargs kubectl delete -n bi-dev pod
  </code></pre>
  
  <p>However when I am using this command as an alias in .bash_profile it doesn't execute . 
  This is how I defined it : </p>
  
  <pre><code> alias kdpgroup="kubectl get pods -n bi-dev --no-headers=true | awk '/group-react/{print $1}'|  kubectl delete -n bi-dev pod"
  </code></pre>
  
  <p>when execute this as below I get below error in commandline:</p>
  
  <pre><code>~ $ kdpgroup
  error: resource(s) were provided, but no name, label selector, or --all flag specified
  </code></pre>
  
  <p>When I define this in .bash_profile I get this : </p>
  
  <pre><code>~ $ . ./.bash_profile
  -bash: alias: }| xargs  kubectl delete -n bi-dev pod: not found
  ~ $
  </code></pre>
  
  <p>Am I missing something to delete POD using Pattern Match or with Wilcard  ?</p>
  
  <p>thanks</p>