sidebar | permalink | keywords | summary |
---|---|---|---|
sidebar |
containers/rh-os-n_use_case_openshift_virtualization_dataprotection_delete.html |
OpenShift, OCP, Astra Trident, NetApp ONTAP, Red Hat OpenShift, OpenShift Virtualization, CNV, Container Native Virtualization, Red Hat OpenShift Virtualization, OADP operator, Openshift Data Protection Application operator, velero |
Red Hat OpenShift Virtualization with NetApp ONTAP |
This section outlines how to delete backups and restores for VMs in OpenShift Virtualization using Velero.
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>