# 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.                                  |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.cloudeka.ai/cloudeka-api-list/command-reference/cldkctl-delete.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
