<p>How to delete below given <code>ingress</code> from default namespace?</p>
<pre><code># kubectl get ingress
Warning: extensions/v1beta1 Ingress is deprecated in v1.14+, unavailable in v1.22+; use networking.k8s.io/v1 Ingress
NAME              CLASS    HOSTS             ADDRESS      PORTS   AGE
abc-ingress       &lt;none&gt;   app.company.com                80      24h
</code></pre>
<pre><code>kubectl describe ingress jenkins-ingress
Warning: extensions/v1beta1 Ingress is deprecated in v1.14+, unavailable in v1.22+; use networking.k8s.io/v1 Ingress
Name:             abc-ingress
Namespace:        default
Address:
Default backend:  default-http-backend:80 (&lt;error: endpoints &quot;default-http-backend&quot; not found&gt;)
Rules:
  Host             Path  Backends
  ----             ----  --------
  abc.company.com
                   /   app-svc:80 (&lt;error: endpoints &quot;app-svc&quot; not found&gt;)
Annotations:       &lt;none&gt;
Events:            &lt;none&gt;
</code></pre>
<p>Tried to delete using below command, But it doesn't work.Please suggest to delete it.</p>
<pre><code># kubectl delete abc-ingress -n default
error: the server doesn't have a resource type &quot;abc-ingress&quot;
</code></pre>

user4948798
<p>While Ali Rezvani's answer is correct, I'd like to extend upon it.</p>
<p><code>kubectl</code> commands are structured as follows:</p>
<pre><code>kubectl ACTION RESOURCE NAME [ -n NAMEPACE ]
</code></pre>
<p>Where <code>ACTION</code> can be <code>get</code>, <code>delete</code>, <code>describe</code>, etc.</p>
<p><code>RESOURCE</code> can be <code>deployments</code>, <code>service</code>, <code>pods</code>, <code>ingress</code> or one of its short forms: <code>deploy</code>, <code>svc</code>, <code>po</code>, or <code>ing</code></p>
<p><code>NAME</code> is the name of the resource(s) you want to apply the ACTION on.</p>
<p>So if you wanted to <code>delete</code> the <code>ingress</code> named <code>abc-ingress</code> in the namespace <code>default</code>, you would use:</p>
<pre><code>kubectl delete ingress abc-ingress -n default
</code></pre>
<p>(side note: generally, normally you can omit <code>-n default</code> as the <code>default</code> namespace is normally, as the name suggests, the default namespace)</p>
