Manual Resource Cleanup¶
If a deletion policy of Orphan leaves resources behind:
- Identify orphaned resources by label:
kubectl get managed -l crossplane.io/composite=<xr-name>
- Delete orphaned resources manually:
kubectl delete <kind> <name>
-
For cloud resources, use the AWS console or CLI to verify cleanup.
-
Update the XR deletion policy before re-creating if cleanup is desired:
spec:
deletionPolicy: Delete