# Trashbin without user quota

**URL:** <https://help.nextcloud.com/t/trashbin-without-user-quota/118726>\
**Category:** ℹ️ Support\
**Created:** [June 20, 2021, 1:33pm UTC](https://help.nextcloud.com/t/trashbin-without-user-quota/118726 "2021-06-20T13:33:57Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![NoSpam](https://help.nextcloud.com/letter_avatar/nospam/32/6_449c533f586939b6e5f246632a46421f.png) [@NoSpam](https://help.nextcloud.com/u/NoSpam)\
**Post date:** [June 20, 2021, 1:33pm UTC](https://help.nextcloud.com/t/trashbin-without-user-quota/118726/1 "2021-06-20T13:33:57Z")

</div>

Nextcloud version _(eg, 20.0.5)_: 21.0.2`Operating system and version _(eg, Ubuntu 20.04)_:`Ubuntu 20.04.2 LTS`Apache or nginx version _(eg, Apache 2.4.25)_: `Apache/2.4.41 (Ubuntu)`PHP version _(eg, 7.4)_:`PHP 7.4.3`

The issue you are facing:

Files in trashbin are not deleted, although default auto-retention is configured (i.e. no own `trashbin_retention_obligation` is set at all).  
I haven’t set any quota for my users, but actually my isk is running full with trash.

The `auto` configuration obviously doesn’t work without quota settings. This is weird because the available disk space is the natural total quota!

There are quite many threads on this topic, but I haven’t been able to find the correct parameters settings which will do the trick.

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [June 20, 2021, 5:40pm UTC](https://help.nextcloud.com/t/trashbin-without-user-quota/118726/2 "2021-06-20T17:40:42Z")

</div>

If I understand recycle bin retention right it’s build to keep deleted files as long as possible - which usually what you want. but the result in turn: if there is no pressure from quota file remain in recycle bin forever.

I would set even you don’t need - enable quota for your users at reasonable high level… this helps you with the problem and even protects a little against some errors e.g. when user or faulty app try to upload to many data… ant it’d easy to adopt the quota in case you need to…

---

<div class="post-metadata">

**Author:** ![NoSpam](https://help.nextcloud.com/letter_avatar/nospam/32/6_449c533f586939b6e5f246632a46421f.png) [@NoSpam](https://help.nextcloud.com/u/NoSpam)\
**Post date:** [June 20, 2021, 6:21pm UTC](https://help.nextcloud.com/t/trashbin-without-user-quota/118726/3 "2021-06-20T18:21:02Z")

</div>

Hi wwe!

Thank you for this reply. I will try it.

However, don’t you think the the trashbin retention should take the available disk space into account? Would this be worth filing a change request?

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [June 20, 2021, 7:04pm UTC](https://help.nextcloud.com/t/trashbin-without-user-quota/118726/4 "2021-06-20T19:04:30Z")

</div>

it’s definitely not wrong to file a change request… the question is if it would receive attention or just fill github…

it would be great the software has defaults matching your needs from the beginning and there is no need to adjust something… in this terms I would say trashbin app defaults are not bad for the majority of the systems and _there is_ a way to adopt them to better fit your expectations…

If you feel your suggestion would improve the software for many people then opening issue on Github is the right way continue.

---

<div class="post-metadata">

**Author:** ![szaimen](https://help.nextcloud.com/user_avatar/help.nextcloud.com/szaimen/32/63019_2.png) [@szaimen](https://help.nextcloud.com/u/szaimen)\
**Post date:** [June 20, 2021, 7:21pm UTC](https://help.nextcloud.com/t/trashbin-without-user-quota/118726/5 "2021-06-20T19:21:51Z")

</div>

Hi, please see [Configuration Parameters — Nextcloud latest Administration Manual latest documentation](https://docs.nextcloud.com/server/stable/admin_manual/configuration_server/config_sample_php_parameters.html?highlight=retention#deleted-items-trash-bin) for all available options.

---

<div class="post-metadata">

**Author:** ![NoSpam](https://help.nextcloud.com/letter_avatar/nospam/32/6_449c533f586939b6e5f246632a46421f.png) [@NoSpam](https://help.nextcloud.com/u/NoSpam)\
**Post date:** [June 20, 2021, 7:48pm UTC](https://help.nextcloud.com/t/trashbin-without-user-quota/118726/6 "2021-06-20T19:48:37Z")

</div>

Hi szaimen!

I read this page on the configuration parameters carefully, I tried to understand the function as much as I could. Still, the part “if space is needed” is misleading, at least for me. Space will be needed when the disk is running full.

---

<div class="post-metadata">

**Author:** ![szaimen](https://help.nextcloud.com/user_avatar/help.nextcloud.com/szaimen/32/63019_2.png) [@szaimen](https://help.nextcloud.com/u/szaimen)\
**Post date:** [June 20, 2021, 8:12pm UTC](https://help.nextcloud.com/t/trashbin-without-user-quota/118726/7 "2021-06-20T20:12:07Z")

</div>

Actually, you are right. The documentation is pretty unclear about whether `if space is full` accounts for disk space or user quota. Feel free to open an issue here to make this more clear: [GitHub - nextcloud/documentation: 📘 Nextcloud documentation](https://github.com/nextcloud/documentation)

---

<div class="post-metadata">

**Author:** ![NoSpam](https://help.nextcloud.com/letter_avatar/nospam/32/6_449c533f586939b6e5f246632a46421f.png) [@NoSpam](https://help.nextcloud.com/u/NoSpam)\
**Post date:** [July 1, 2021, 8:45pm UTC](https://help.nextcloud.com/t/trashbin-without-user-quota/118726/8 "2021-07-01T20:45:10Z")

</div>

> [@szaimen](#):
>
> Feel free to open an issue here to make this more clear: [GitHub - nextcloud/documentation: 📘 Nextcloud documentation](https://github.com/nextcloud/documentation)

I have filed this issue:

> <https://github.com/nextcloud/documentation/issues/6889>
>
> https://docs.nextcloud.com/server/stable/admin\_manual/configuration\_server/confi…g\_sample\_php\_parameters.html#deleted-items-trash-bin
> 
> The description of the configuration parameter \`trashbin\_retention\_obligation\` is misleading. There it is described:   
> "deletes anytime after that if space is needed (note: files may not be deleted if space is not needed)"
> 
> However, this is not the implemented behaviour because the question of whether space is needed will only be answered if a user quota is configured.
> 
> Hence, the retention of deleted files depends on the user quota setting! 
> 
> This dependency is not documented. Please update the documentation accordingly.

---

<div class="post-metadata">

**Author:** ![NoSpam](https://help.nextcloud.com/letter_avatar/nospam/32/6_449c533f586939b6e5f246632a46421f.png) [@NoSpam](https://help.nextcloud.com/u/NoSpam)\
**Post date:** [July 1, 2021, 9:15pm UTC](https://help.nextcloud.com/t/trashbin-without-user-quota/118726/9 "2021-07-01T21:15:07Z")

</div>

> [@wwe](#):
>
> If you feel your suggestion would improve the software for many people then opening issue on Github is the right way continue.

Yes, I think so and filed this issue:  
[https://github.com/nextcloud/server/issues/27756](https://github.com/nextcloud/server/issues/27756)

---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 13, 2024, 9:58am UTC](https://help.nextcloud.com/t/trashbin-without-user-quota/118726/10 "2024-12-13T09:58:15Z")

</div>



---

<div class="post-metadata">

**Author:** ![wwe](https://help.nextcloud.com/user_avatar/help.nextcloud.com/wwe/32/72963_2.png) [@wwe](https://help.nextcloud.com/u/wwe)\
**Post date:** [December 13, 2024, 9:58am UTC](https://help.nextcloud.com/t/trashbin-without-user-quota/118726/11 "2024-12-13T09:58:16Z")

</div>


