# atmos kubernetes delete

Remove the Kubernetes objects managed by a stack-configured component. Atmos
renders the same manifests used for deployment, resolves each object, and
deletes it from the target cluster by name and namespace.

**Configure Kubernetes Components**

Keep the desired objects in stack configuration, then use `delete` when a
component should be removed from an environment.

Stack Configuration

[Read more](/stacks/components/kubernetes)

## Usage

```shell
atmos kubernetes delete <component> --stack <stack>
atmos kubernetes delete --all --stack <stack>
```

`delete` renders the final manifests, resolves each object from GVK to GVR using
discovery and a RESTMapper, and deletes each object by name and namespace
through the Kubernetes dynamic client.

The command does not require the `kubectl` binary.

## Example

```shell
atmos kubernetes delete argocd -s plat-ue2-dev
```

Example output:

```text
deleted apps/v1/Deployment argocd/argocd-server
not-found v1/Service argocd/argocd-server
```

## Flags

- **`--stack`, `-s` (required)**
  Atmos stack.
- **`--all` (optional)**
  Delete all Kubernetes components in dependency order.
- **`--affected` (optional)**
  Delete affected Kubernetes components and their dependencies.
- **`--include-dependents` (optional)**
  With 
  `--affected`
  , include dependent Kubernetes components.
