<p>By mistake I created a service account to give admin permission for dashboard. But now I am unable to delete it.</p>

<p>The reason I want to get rid of that service account is if I follow the steps here <a href="https://github.com/kubernetes/dashboard" rel="noreferrer">https://github.com/kubernetes/dashboard</a>. When I jump to the URL it doesn't ask for config/token anymore.</p>

<pre><code>$ kubectl get serviceaccount --all-namespaces | grep dashboard

NAMESPACE     NAME                   SECRETS   AGE

kube-system   kubernetes-dashboard   1         44m

$ kubectl delete serviceaccount kubernetes-dashboard

Error from server (NotFound): serviceaccounts "kubernetes-dashboard" not found
</code></pre>

<p>You have to specify the namespace when deleting it:</p>

<pre><code>kubectl delete serviceaccount -n kube-system kubernetes-dashboard
</code></pre>
