hardis:project:action:delete
Description
Command Behavior
Deletes an existing deployment action from the project configuration.
Removes a single action identified by its ID from the specified scope and deployment phase.
Agent Mode
Supports non-interactive execution with --agent:
sf hardis:project:action:delete --agent --scope branch --when pre-deploy --action-id <uuid>
Required in agent mode:
--scope,--when,--action-id
Technical explanations
- Reads the action list from the YAML config file, removes the matching action, and writes the file back.
Parameters
| Name | Type | Description | Default | Required | Options |
|---|---|---|---|---|---|
| action-id | option | ID of the action to delete | |||
| agent | boolean | Run in non-interactive mode for agents and automation | |||
| branch | option | Target branch name (for branch scope, defaults to current branch) | |||
| debug -d |
boolean | Activate debug mode (more logs) | |||
| flags-dir | option | undefined | |||
| json | boolean | Format output as json. | |||
| pr-id | option | Pull request ID (for pr scope, defaults to draft) | |||
| scope | option | Configuration scope: project, branch, or pr | project branch pr |
||
| websocket | option | Websocket host:port for VsCode SFDX Hardis UI integration | |||
| when | option | When to run the action: pre-deploy or post-deploy | pre-deploy post-deploy |
Examples
$ sf hardis:project:action:delete
$ sf hardis:project:action:delete --agent --scope branch --when pre-deploy --action-id abc-123