import Tabs from '@theme/Tabs'
import TabItem from '@theme/TabItem'

<Tabs
  defaultValue="vcluster"
  values={[
    { label: 'vcluster', value: 'vcluster', },
    { label: 'helm', value: 'helm', },
    { label: 'kubectl', value: 'kubectl', },
  ]
}>
<TabItem value="vcluster">

```bash
# switch the kube context back
vcluster disconnect

# OR: switch context back and delete vCluster
vcluster delete my-vcluster
```

</TabItem>
<TabItem value="helm">

```bash
helm delete my-vcluster -n vcluster-my-vcluster --repository-config=''
```

</TabItem>
<TabItem value="kubectl">

The easiest option to delete a virtual cluster using `kubectl` is to delete the host namespace:
```bash
kubectl delete namespace vcluster-my-vcluster
```

In case you have multiple vClusters or any other resources in this namespace, you can also just delete the vCluster-related resources:
```bash
kubectl delete -n vcluster-my-vcluster serviceaccount vcluster-1
kubectl delete -n vcluster-my-vcluster role vcluster-1
kubectl delete -n vcluster-my-vcluster rolebinding vcluster-1
kubectl delete -n vcluster-my-vcluster service vcluster-1
kubectl delete -n vcluster-my-vcluster service vcluster-1-headless
kubectl delete -n vcluster-my-vcluster statefulset vcluster-1
```

</TabItem>
</Tabs>
