Skip to main content
NetApp Solutions

Deleting backups and restores in using Velero

Contributors banum-netapp

Deleting a backup

You can delete a Backup CR without deleting the Object Storage data by using the OC CLI tool.

oc delete backup <backup_CR_name> -n <velero_namespace>

If you want the delete the Backup CR and delete the associated object storage data, you can do so by using the Velero CLI tool.

Download the CLI as given in the instructions in the Velero documentation.

Execute the following delete command using the Velero CLI

velero backup delete <backup_CR_name> -n <velero_namespace>

You can also delete the Restore CR using the Velero CLI

velero restore delete restore --namespace openshift-adp

You can use oc command as well as the UI to delete the restore CR

oc delete backup <backup_CR_name> -n <velero_namespace>