filebrowser icon indicating copy to clipboard operation
filebrowser copied to clipboard

Feature Request: Automatically Delete Expired Shared Files and Folders

Open Le0nWolf opened this issue 1 year ago • 0 comments

Is your feature request related to a problem? Please describe.

Currently, shared files and folders remain in the directory even after the sharing link expires. This leads to unnecessary storage usage and requires manual cleanup. Automating the removal of expired files and folders would help streamline this process and reduce storage clutter.

Describe the solution you'd like

I would like to request a feature that:

  1. Automatically deletes shared files and folders after their expiration date.
  2. Includes a checkbox in the sharing dialog labeled "Delete after expiration," which allows users to opt in for automatic deletion. The default state of this checkbox should be configurable by the admin in the settings.
  3. Provides an option for admins to enforce this behavior globally. If enforced, the checkbox would not be visible to users, and files would always be deleted after expiration without any user control. Additionally, the admin should have the ability to configure the opposite behavior—preventing users from opting in to automatic deletion. In this case, files would never be deleted after expiration, regardless of user preference, and the checkbox would be hidden.
  4. Allows admins to configure a grace period before deletion takes place (e.g., delete 7 days after expiration).

Describe alternatives you've considered

  • Manually monitoring and deleting expired files and folders. This is time-consuming and error-prone.
  • Using external scripts or automation tools to perform this task. However, it's not feasible to determine exactly when a file or folder's sharing link has expired using scripts, making it difficult to automate the deletion process effectively.

Additional context

Implementing this feature would make the management of shared files more efficient and help keep directories clean. This could be particularly useful in environments with many users where shared links are frequently created and expire.

Le0nWolf avatar Aug 16 '24 11:08 Le0nWolf