<p>We've setup an AWS s3 storage as Helm repo.</p>

<p>But with development going on, more and more package files are uploade to the S3.</p>

<p>We want to cleanup/delete older files in S3, of course, I know we can't directly delete them from S3 as there're some mapping info stored in index.yaml.</p>

<p>I check the <code>helm help</code>, got few information about this. Is there any formal way to delete older helm packages?</p>

user10814765
<p>as mentioned in <a href="https://chartmuseum.com/docs/#helm-chart-repository" rel="nofollow noreferrer">https://chartmuseum.com/docs/#helm-chart-repository</a> </p>

<p>you can use Helm Museum api to do that</p>

<p>e.g.</p>

<pre><code># curl -XDELETE http://helm.chartrepo.url/api/charts/chart-name/version
</code></pre>

<p>please pay attention to the versions, you have to delete it one version per curl hit, means if you have 2 version and want to delete all the version you have to do it per version</p>

<pre><code># curl -XDELETE http://helm.chartrepo.url/api/charts/chart-name/1.0.1
# curl -XDELETE http://helm.chartrepo.url/api/charts/chart-name/1.0.2
</code></pre>

<p>ps:
you can search your apps versions by hit </p>

<pre><code># curl http://helm.chartrepo.url/index.yaml
</code></pre>
