> For the complete documentation index, see [llms.txt](https://docs.cloudeka.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.cloudeka.ai/cloudeka-api-list/command-reference/cldkctl-delete.md).

# cldkctl delete

Remove (delete) an existing Kubernetes resource from the cluster. You can delete objects such as pods, services, deployments, daemonsets, roles, secrets, dan resource lain di dalam project.

## Usage

```
cldkctl delete [flags]
```

```
cldkctl delete [subcommand] [flags]
```

## Available commands

| Command               | Description                                       |
| --------------------- | ------------------------------------------------- |
| clusterrole           | Delete a ClusterRole from the cluster             |
| clusterrolebinding    | Delete a ClusterRoleBinding from the cluster      |
| configmap             | Delete a ConfigMap from the cluster               |
| daemonset             | Delete a DaemonSet from the cluster               |
| datavolume            | Delete a Data Volume from the cluster             |
| deployment            | Delete a Deployment from the cluster              |
| ingress               | Delete an Ingress resource from the cluster       |
| ingressclass          | Delete an Ingress Class from the cluster          |
| persistentvolume      | Delete a Persistent Volume from the cluster       |
| persistentvolumeclaim | Delete a Persistent Volume Claim from the cluster |
| pod                   | Delete a Pod from the cluster                     |
| role                  | Delete a Role from the cluster                    |
| secret                | Delete a Secret from the cluster                  |
| service               | Delete a Service from the cluster                 |
| serviceaccount        | Delete a Service Account from the cluster         |
| statefulset           | Delete a StatefulSet from the cluster             |

## Flags

{% hint style="info" %}
This command supports [global flags](/cloudeka-api-list/global-flags.md). Refer to the Global Flags section for details.
{% endhint %}

| Flag                     | Description                                              |
| ------------------------ | -------------------------------------------------------- |
| `-h, --help`             | Help for the delete command.                             |
| `-n, --namespace string` | Specify the Kubernetes namespace to scope the operation. |
| `-p, --project string`   | Specify the project ID.                                  |
