[Bug]: Clarification of expiring Trashbin
Nobody has claimed this yet.
- Dominant language
- PHP
- Stars
- 36.9k
- Forks
- 5.2k
- Avg merge
- 2d 3h
- Merged PRs (30d)
- 713
Description
⚠️ This issue respects the following points: ⚠️
- This is a bug, not a question or a configuration/webserver/proxy issue.
- This issue is not already reported on Github OR Nextcloud Community Forum (I've searched it).
- Nextcloud Server is up to date. See Maintenance and Release Schedule for supported versions.
- I agree to follow Nextcloud's Code of Conduct.
Bug description
If you use the console for the trashbin, there is an option to expire the trashbin for a user:
https://github.com/nextcloud/server/blob/5a6e48e85034aa81862b1fcbd93cb4ce58165e72/apps/files_trashbin/lib/Command/ExpireTrash.php#L66
I don't know if it is just me, but what does it mean to expire a trashbin for a user, that the user cannot use the trashbin any more? Or expire all the files within, but how would that be different from just a cleanup? Or it will force-delete only the files already expired (but they are kept because the trashbin is less than 50% of the available space)?
Steps to reproduce
- Show list of commands with occ
Expected behavior
Clarify description in CLI command and the documentation
Installation method
None
Nextcloud Server version
27
Operating system
None
PHP engine version
None
Web server
None
Database engine version
None
Is this bug present after an update or on a fresh install?
None
Are you using the Nextcloud Server Encryption module?
None
What user-backends are you using?
- Default user-backend (database)
- LDAP/ Active Directory
- SSO - SAML
- Other
Configuration report
No response
List of activated Apps
No response
Nextcloud Signing status
No response
Nextcloud Logs
No response
Additional info
No response
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with apps/files_trashbin/lib/Command/ExpireTrash.php at the linked line and inspect the command's description and behavior. Check the related Nextcloud documentation entry for the trashbin console command. Done means the command and documentation clearly explain what expiring a user's trashbin does, with wording consistent with the implementation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- php
- Domain
- cli, documentation
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 45/100