# withHelmChartDestroy

- Module: [Aspire.Hosting.Kubernetes](/reference/api/typescript/aspire.hosting.kubernetes.md)
- Version: `13.4.0-preview.1.26281.18`
- Kind: `method`
- Source: [GitHub](https://github.com/microsoft/aspire)

Opts the Helm chart in to destroy-time uninstall. When set, `aspire destroy` will run `helm uninstall` for this release as part of the destroy pipeline.

## Definition

```typescript
interface KubernetesHelmChartResource {
  // ... omitted for brevity
  withHelmChartDestroy(): KubernetesHelmChartResource
}
```

## Returns

[KubernetesHelmChartResource](/reference/api/typescript/aspire.hosting.kubernetes/kuberneteshelmchartresource.md) `builder`

## Applies to

- [KubernetesHelmChartResource](/reference/api/typescript/aspire.hosting.kubernetes/kuberneteshelmchartresource.md)
