<p>Flux sync git state with cluster state but If I want to delete a resource from Kubernetes in a scenerio where all resources are managed through git, what is the best way to delete a resource (deplyment, service, ingress etc) with flux ?</p>

Rezwan
<p>Flux has an experimental (but quite mature) garbage collection feature that can be enabled by setting the <code>--sync-garbage-collection</code> flag as an argument on the Flux daemon deployment (or by setting <code>syncGarbageCollection.enabled</code> to <code>true</code> in your <code>values.yaml</code> in case you are deploying Flux using the Helm chart).</p>

<p>With the garbage collection feature enabled, Flux will remove resources from Kubernetes when they are removed from git.</p>

<p>You can find in depth information about the garbage collection feature in the <a href="https://github.com/weaveworks/flux/blob/1.12.3/site/garbagecollection.md" rel="nofollow noreferrer">documentation</a>.</p>
