Helm Delete step
Reference for the Helm Delete step
The Harness Helm Delete step uninstalls Helm releases within a pipeline execution. This step does not require a service but must be executed in an environment and infrastructure that supports Helm natively. You can specify the release name manually or retrieve it from the selected infrastructure.
Use this step when Helm-based applications need to be removed as part of cleanup processes, rollback strategies, or custom pipeline workflows.
What you will learn from this topic
How to decide when to use this step.
How to configure the Helm Delete step in a Deploy stage.
How to set step configuration options, including dry-run, release name, command flags, and environment variables.
How to review limitations and advanced settings.
Before you begin
The following prerequisites apply to the Helm Delete step:
Native Helm deployment type: Use a Deploy stage with Native Helm, or a Custom stage where you can supply the release name manually.
Environment and infrastructure: An environment and infrastructure that natively supports Helm. Go to Native Helm quickstart to set up Helm deployments.
Delegate version: Harness Delegate version
85400or later.Matching service and environment (Deploy stage): When you use the step in a Deploy stage, use the same service and environment that were used for the Helm deployment you want to uninstall.
When to use this step
Use the Helm Delete step in the following scenarios:
Uninstalling Helm releases as part of a deployment rollback.
Cleaning up resources in custom pipeline workflows.
Removing specific Helm deployments without requiring a full service definition.
Configure the Helm Delete step
Perform the following steps to add and configure the Helm Delete step:
Navigate to your pipeline and add a new Deploy stage.
Under Deployment Type, select Native Helm.
For Service, use the same service that was used for the Helm deployment.
For Environment, use the same environment that was used for the Helm deployment.
In Execution, choose any execution strategy. Because the Helm Delete step must be added separately:
Click Add Step.
Select Helm Delete.
Save and execute the pipeline.

Step configuration options
Configure the following settings on the Helm Delete step:
Name: The name for the step.
Timeout: The timeout duration for this step. You can specify:
wfor weeksdfor dayshfor hoursmfor minutessfor secondsmsfor milliseconds
Dry-Run: A
--dry-runcheckbox is available for safer execution of destructive operations, allowing you to preview the changes before applying them.Release Name: The name of the Helm release to be deleted. You can specify this manually or leave it blank to automatically retrieve the release name from the selected infrastructure.
When the Helm Delete step is used in a Deploy stage, the release name can be fetched from the selected service and infrastructure configuration.
If used in a Custom stage, you must manually provide the release name, because there is no service context available in that stage.
The release name supports Runtime input and expressions.
Optional configuration
The following optional settings are available:
Command Flags: You can add or remove Helm flags as needed within the step configuration. Go to the Helm uninstall options for a complete list of supported command flags.
Adding command flags at the service
You can also configure command flags at the service level, which are applied during Helm uninstallation. To do this:
Navigate to the Service Configuration.
Go to the Manifests tab.
In the Advanced section, select the Command Type as
Uninstall.Add the required Helm flags under Flags.
When the Helm Delete step is used in a Deploy stage, both service-level and step-level command flags are supported. However, step-level flags take precedence over service-level flags during execution.
If the Helm Delete step is used in a Custom stage, only the flags defined in the step itself are considered. The step does not inherit flags or configurations from the service in this case.
Environment Variables: Add any environment variables here.
Advanced options
The following Advanced settings are available on the step:
Limitations
Review the following limitations before you use the Helm Delete step:
Helm v2 is not supported.
The Helm delete command behavior depends on Helm v3 flags, which vary based on the release.
You must have an environment and infrastructure that natively supports Helm.
Troubleshooting
The following issues are common when you use the Helm Delete step:
Next steps
Native Helm quickstart: Deploy with Native Helm and configure command flags.
Helm Deploy step: Deploy a Helm release before you delete it.
Helm Rollback step: Roll back a Helm release instead of deleting it.
Last updated
Was this helpful?