# Automatic file deletion (Retention) is not working

**URL:** <https://help.nextcloud.com/t/automatic-file-deletion-retention-is-not-working/218889>\
**Category:** ℹ️ Support\
**Tags:** nc29\
**Created:** [March 3, 2025, 1:45am UTC](https://help.nextcloud.com/t/automatic-file-deletion-retention-is-not-working/218889 "2025-03-03T01:45:52Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![scubamuc](https://help.nextcloud.com/user_avatar/help.nextcloud.com/scubamuc/32/63165_2.png) [@scubamuc](https://help.nextcloud.com/u/scubamuc)\
**Post date:** [March 4, 2025, 4:39pm UTC](https://help.nextcloud.com/t/automatic-file-deletion-retention-is-not-working/218889/3 "2025-03-04T16:39:09Z")

</div>

> [@ksuzuki](#):
>
> but the file deletion was not executed even though the file was tagged.

you’re not using the snap, but the description should be similar… maybe this helps?

> [@How to edit config.php for Nextcloud snap](https://help.nextcloud.com/t/how-to-edit-config-php-for-nextcloud-snap/218564#p-655465-setting-trashbin-retention-14):
>
> Nextcloud offers different configuration methods. While some folks prefer editing the configuration file using their favourite editor like nano, vim or UI texteditors like gedit, kedit etc. the [OCC management console](https://help.nextcloud.com/t/how-to-use-occ-management-console-for-nextcloud-snap/216111/) is a safe and comfortable method to configure your instance. Regardless of the method you prefer, be sure to backup your configuration before editing! Take care to preserve the syntax and special characters, as incorrect formatting or misplaced characters and spaces may render y…

---

_[View the full topic](https://help.nextcloud.com/t/automatic-file-deletion-retention-is-not-working/218889)._
