# Scheduled backups are not deleted from Azure Blob

**URL:** <https://forums.percona.com/t/scheduled-backups-are-not-deleted-from-azure-blob/19743>\
**Category:** Percona XtraDB Cluster 5.x\
**Created:** [January 24, 2023, 8:37am UTC](https://forums.percona.com/t/scheduled-backups-are-not-deleted-from-azure-blob/19743 "2023-01-24T08:37:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Stu](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/stu/32/9081_2.png) [@Stu](https://forums.percona.com/u/Stu)\
**Post date:** [January 24, 2023, 8:37am UTC](https://forums.percona.com/t/scheduled-backups-are-not-deleted-from-azure-blob/19743/1 "2023-01-24T08:37:23Z")

</div>

Hello,

I recently switched my Percona Backups to use Azure Blob Storage. However, now I noticed that all backups that were scheduled by the Operator using the `backup.tasks` options, will not get deleted from Azure Blob. Now I’m left with terrabytes of old backups that are far behind the actual number of backups I configured Percona to keep. Is this a common problem and is there a fix?

```auto
    backup:
      enabled: true
      image: "percona/percona-xtradb-cluster-operator:1.12.0-pxc5.7-backup"
      imagePullPolicy: Always
      backoffLimit: 3

      pitr:
        enabled: false

      storages:
        blob:
          type: azure
          azure:
            credentialsSecret: database-backup-storage-account
            container: backup

      schedule:
        - name: "two-hourly-backup"
          schedule: "0 */2 * * *" # do backup every 2 hours
          keep: 100
          storageName: blob

```

This is my configuration for backups from the operator.

PS.: If I create an on-demand backup with the `delete-s3-backup` finalizer, and delete that backup, it will be deleted fine. I also can’t find any errors in the log. So my guess is that the scheduled backups are missing the finalizer delete-s3-backup.

---

<div class="post-metadata">

**Author:** ![Sergey\_Pronin](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/sergey_pronin/32/14887_2.png) [@Sergey\_Pronin](https://forums.percona.com/u/Sergey_Pronin)\
**Post date:** [January 25, 2023, 12:35pm UTC](https://forums.percona.com/t/scheduled-backups-are-not-deleted-from-azure-blob/19743/2 "2023-01-25T12:35:25Z")

</div>

Hey @Stu ,

we will check this! Thanks for reporting.

---

<div class="post-metadata">

**Author:** ![Natalia\_Marukovich](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/natalia_marukovich/32/6407_2.png) [@Natalia\_Marukovich](https://forums.percona.com/u/Natalia_Marukovich)\
**Post date:** [January 25, 2023, 3:46pm UTC](https://forums.percona.com/t/scheduled-backups-are-not-deleted-from-azure-blob/19743/3 "2023-01-25T15:46:04Z")

</div>

@Stu Thank you for your report. It looks like we have a problem on our side. We will fix it in the next release. You can check the task progress in the ticket [[K8SPXC-1197] Backup Finalizer do not correctly delete backups from Azure - Percona JIRA](https://jira.percona.com/browse/K8SPXC-1197)
