# Pbm delete-backup didnt delete the old dump files on disk

**URL:** <https://forums.percona.com/t/pbm-delete-backup-didnt-delete-the-old-dump-files-on-disk/8297>\
**Category:** Percona Backup for MongoDB\
**Created:** [November 23, 2020, 5:20am UTC](https://forums.percona.com/t/pbm-delete-backup-didnt-delete-the-old-dump-files-on-disk/8297 "2020-11-23T05:20:09Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![deepaklo](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/deepaklo/32/2640_2.png) [@deepaklo](https://forums.percona.com/u/deepaklo)\
**Post date:** [November 23, 2020, 5:20am UTC](https://forums.percona.com/t/pbm-delete-backup-didnt-delete-the-old-dump-files-on-disk/8297/1 "2020-11-23T05:20:09Z")

</div>

Any idea the command didnt delete the old dump files on the disk, How ever when i give pbm backup-list , i get only the backups after 2020-11-21T00:00:01Z under backup snapshots and PITR : as well.

pbm delete-backup -f --older-than=2020-11-21

How do i retain only intended on the disks and retain some disk space.

---

<div class="post-metadata">

**Author:** ![Akira\_Kurogane](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/akira_kurogane/32/1280_2.png) [@Akira\_Kurogane](https://forums.percona.com/u/Akira_Kurogane)\
**Post date:** [November 23, 2020, 7:02am UTC](https://forums.percona.com/t/pbm-delete-backup-didnt-delete-the-old-dump-files-on-disk/8297/2 "2020-11-23T07:02:01Z")

</div>

Hi Deepaklo.

If you’re using filesystem remote storage things can be uncoordinated if the backup directory is not the same, single block device mounted to all servers.

This is not necessarily what the issue is for you now but I’d like to check that first.

Best regards,

Akira

---

<div class="post-metadata">

**Author:** ![deepaklo](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/deepaklo/32/2640_2.png) [@deepaklo](https://forums.percona.com/u/deepaklo)\
**Post date:** [November 23, 2020, 9:40am UTC](https://forums.percona.com/t/pbm-delete-backup-didnt-delete-the-old-dump-files-on-disk/8297/3 "2020-11-23T09:40:31Z")

</div>

yes i use file system backup and the device is not NFS.it is seperate disk individual to the servers with the same mountpoint. Hopefully that was not a right setup from my end, but thinking an NFS disk should resolve the problem.

---

<div class="post-metadata">

**Author:** ![Akira\_Kurogane](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/akira_kurogane/32/1280_2.png) [@Akira\_Kurogane](https://forums.percona.com/u/Akira_Kurogane)\
**Post date:** [November 23, 2020, 5:43pm UTC](https://forums.percona.com/t/pbm-delete-backup-didnt-delete-the-old-dump-files-on-disk/8297/4 "2020-11-23T17:43:40Z")

</div>

Hi Deepaklo.

Ah, yes, that would have been why. One pbm-agent accesses one drive, runs the delete but deletes nothing because there happened to be nothing in the drive attached to its server. The pbm list however ran on another server which has the drive where the files were written.

An NFS drive that is shared between all makes it correct.

Using a filesystem that is local means the backups can be lost due to mistakes like this. So I always caution that filesystem remote storage takes a lot of administrative care compared to using an Object Store, such as S3 or Minio.

---

<div class="post-metadata">

**Author:** ![deepaklo](https://sea1.discourse-cdn.com/flex019/user_avatar/forums.percona.com/deepaklo/32/2640_2.png) [@deepaklo](https://forums.percona.com/u/deepaklo)\
**Post date:** [December 7, 2020, 6:13am UTC](https://forums.percona.com/t/pbm-delete-backup-didnt-delete-the-old-dump-files-on-disk/8297/5 "2020-12-07T06:13:35Z")

</div>

deleting: unable to delete backup in running state , any idea on this , trying to delete a backup and it said failed.
