Skip to content

Instantly share code, notes, and snippets.

@weshayutin
weshayutin / clean_and_patch_finalizers.md
Last active December 17, 2025 20:08
clean_and_patch_finalizers.md

check setup

delete all backups

velero backup delete --all

delete restores

for i in `oc get restore -A -o custom-columns=NAME:.metadata.name`; do echo $i; oc patch restore $i -p '{"metadata":{"finalizers":null}}' --type=merge; done

delete repo maint jobs