Salesforce CLI Command Reference
Release Notes
Deprecation Policy
apex get compile-status
apex get log
apex get test
apex list log
apex run
apex run test
apex tail log
apex trace create
apex trace delete
apex trace list
Delete a trace flag in your org.
Remove a trace flag by its ID. Use “sf apex trace list” to find trace flag IDs in your org.
| Flag Name (Long) | Flag Name (Short) | Description |
|---|---|---|
--api-version | N/A | Type: Value Override the api version used for api requests made by this command |
--flags-dir | N/A | Type: Value Import flag values from a directory. |
--json | N/A | Type: Boolean Format output as json. |
--target-org | -o | Type: Value Required Username or alias of the target org. Not required if the target-org configuration variable is already set. |
--trace-flag-id | -i | Type: Value Required ID of the trace flag to delete. |
Delete a trace flag by ID in your default org:
1sf apex trace delete --trace-flag-id 7tf000000000001AAADelete a trace flag by ID in an org with alias “my-org”:
1sf apex trace delete --trace-flag-id 7tf000000000001AAA --target-org my-org