1
0
mirror of https://github.com/openshift/openshift-docs.git synced 2026-02-07 00:48:01 +01:00
Files
openshift-docs/modules/oadp-deleting-backups.adoc
2023-10-30 10:13:25 -04:00

44 lines
1.3 KiB
Plaintext

// Module included in the following assemblies:
//
// * backup_and_restore/application_backup_and_restore/backing_up_and_restoring/backing-up-applications.adoc
:_mod-docs-content-type: PROCEDURE
[id="oadp-deleting-backups_{context}"]
= Deleting backups
You can remove backup files by deleting the `Backup` custom resource (CR).
[WARNING]
====
After you delete the `Backup` CR and the associated object storage data, you cannot recover the deleted data.
====
.Prerequisites
* You created a `Backup` CR.
* You know the name of the `Backup` CR and the namespace that contains it.
* You downloaded the Velero CLI tool.
* You can access the Velero binary in your cluster.
.Procedure
* Choose one of the following actions to delete the `Backup` CR:
** To delete the `Backup` CR and keep the associated object storage data, issue the following command:
+
[source,terminal]
----
$ oc delete backup <backup_CR_name> -n <velero_namespace>
----
** To delete the `Backup` CR and delete the associated object storage data, issue the following command:
+
[source,terminal]
----
$ velero backup delete <backup_CR_name> -n <velero_namespace>
----
+
Where:
+
<backup_CR_name>:: Specifies the name of the `Backup` custom resource.
<velero_namespace>:: Specifies the namespace that contains the `Backup` custom resource.