title: How to delete a service account in kubernetes?
body: <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>