<p>I'm looking for a <strong>kubectl</strong> command to list / delete <strong>all</strong> completed <strong>jobs</strong></p>

<p>I've try:</p>

<pre><code>kubectl get job --field-selector status.succeeded=1
</code></pre>

<p>But I get:</p>

<pre><code>enfield selector "status.succeeded=1": field label "status.succeeded" not supported for batchv1.Jobter code here
</code></pre>

<p>What are the possible fields for <strong>--fieldSelector</strong> when getting jobs ?</p>

<p>Is there a better way to do this ?</p>

should_be_working
<p>you are almost there, you can do below to delete completed jobs</p>
<pre><code>kubectl delete jobs --all-namespaces --field-selector status.successful=1 
</code></pre>
