nextcloud / server

☁️ Nextcloud server, a safe home for all your data
https://nextcloud.com
GNU Affero General Public License v3.0
27.37k stars 4.06k forks source link

Auto expiration (deletion) of folders #48147

Open Akorian opened 1 year ago

Akorian commented 1 year ago

My Problem

I am the admin of a rather large Nextcloud instance where we use group folders. It has gone a little out of hand and there are many group folders that aren't used anymore and should be deleted. But no one feels responsible for these folders anymore thus it is an organizational nightmare to contact everyone regarding their group folders and delete them by hand.

Proposed Solution

I am proposing a feature, that would allow setting an expiration date for a group folder after which it is deleted. There should be two distinct settings for this. A) After the set time the group folder is deleted. B) The set time is calculated from the last modification to the group folder. That would mean that as long as a groupfolder is actively used, it never expires. But when no one is using it anymore, the time ticks down and the folder is deleted.

Alternatives Considered

Setting a policy on the admin side that would allow me to delete groupfolders after a set time or a set time of inactivity. But this again would mean more work for me for a task that could be automated.

How to use GitHub

provokateurin commented 1 month ago

I think this better to implement in the server such that any folder can have the automatic expiry functionality.