# apex trace delete

Delete a trace flag in your org.

## Description for apex trace delete

Remove a trace flag by its ID. Use "sf apex trace list" to find trace flag IDs in your org.

## Flags

| Flag Name (Long)  | Flag Name (Short) | Description                                                                                                                                         |
| ----------------- | ----------------- | --------------------------------------------------------------------------------------------------------------------------------------------------- |
| `--api-version`   | N/A               | **Type:** Value<br><br>Override the api version used for api requests made by this command                                                          |
| `--flags-dir`     | N/A               | **Type:** Value<br><br>Import flag values from a directory.                                                                                         |
| `--json`          | N/A               | **Type:** Boolean<br><br>Format output as json.                                                                                                     |
| `--target-org`    | `-o`              | **Type:** Value<br>**Required**<br><br>Username or alias of the target org. Not required if the `target-org` configuration variable is already set. |
| `--trace-flag-id` | `-i`              | **Type:** Value<br>**Required**<br><br>ID of the trace flag to delete.                                                                              |

## Examples for apex trace delete

Delete a trace flag by ID in your default org:

```shell
sf apex trace delete --trace-flag-id 7tf000000000001AAA
```

Delete a trace flag by ID in an org with alias "my-org":

```shell
sf apex trace delete --trace-flag-id 7tf000000000001AAA --target-org my-org
```
