# delete

The cldkctl guard delete command deletes an existing Guard from your project. This command permanently removes the Guard configuration, including its ingress and egress rules, from the specified namespace.

## Usage

```
cldkctl guard delete [flags]
```

## Aliases

```
delete, remove
```

## Steps

Follow the steps below to run and view the result of this command:

<figure><img src="https://2882153758-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fi9YWb69HFXLHYlXffReU%2Fuploads%2FL6a0BWF845n2TpYQxse1%2Funknown.png?alt=media&#x26;token=fa6638ed-1790-49d4-9beb-3ca60431b204" alt=""><figcaption></figcaption></figure>

1. Run the following command in your terminal:

```
./cldkctl guard delete --name <guard_name>
```

2. If your Guard is located in a specific namespace, include the `--namespace` flag.
3. Wait for the system to process the deletion request.
4. Once completed, the terminal displays the message “✔ Guard has been successfully deleted”

## Flags

{% hint style="info" %}
This command supports global flags. Refer to the Global Flags section for details
{% endhint %}

| Flag                   | Description                                    |
| ---------------------- | ---------------------------------------------- |
| -h, --help             | Help for the guard delete command.             |
| -n, --name string      | Specify the name of the Guard to delete.       |
| -s, --namespace string | Specify the namespace where the Guard resides. |
