<p>I'm on a windows machine in a powershell prompt.
I don't have the Linux commands like <code>grep</code>, <code>awk</code>.</p>
<p>I have a couple of jobs that I want to delete</p>
<p><a href="https://i.stack.imgur.com/80yY2.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/80yY2.png" alt="enter image description here" /></a></p>
<p>I'm not finding the correct syntax for  deleting them such as</p>
<pre><code>kubectl delete job mailmigrationjob-id699*
</code></pre>
<p>or</p>
<pre><code>kubectl delete job where name like mailmigrationjob-id699
</code></pre>

CloudAnywhere
<p>Try:</p>
<pre><code>$Pattern=&quot;mailmigrationjob-id699&quot;; &amp; kubectl get job | % {&quot;$_&quot; -Split &quot; &quot;} | Select-String -Pattern $Pattern | %{ &amp; kubectl delete job $_ }
</code></pre>
<p>Taken from: <a href="https://gist.github.com/IAmStoxe/37f84f0898e10e1a5da23793aada3e30" rel="nofollow noreferrer">Delete all kubernetes pods by regex pattern with PowerShell</a></p>
