×

You can remove backup files by deleting the Backup custom resource (CR).

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:

      $ 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:

      $ 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.