Deleting a custom resource for backing up or restoring Db2

You cannot recover a custom resource that has been deleted.

Deleting a custom resource for backing up

Before you delete a custom resource for backing up Db2, consider the following restrictions:
  • You cannot restore from a deleted backup.
  • A backup image on disk is not deleted, if a completed backup from a custom resource is not deleted.
  • Do not delete database-level backups manually. Database-level backups are deleted automatically.
  • It is not recommended to delete a backup custom resource, unless the backup status indicates InvalidSpec, Error, or Expired.
You can delete a custom resource for backing up by running the following command:
Warning: You cannot recover a custom resource that has been deleted.
oc delete db2ubackup <name of your db2ubackup>

Deleting a custom resource for restoring

You can delete a custom resource for restoring by running the following command:
Warning: You cannot recover a custom resource that has been deleted.
oc delete db2urestore <name of your db2urestore>