Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[feature request] Delete old files #1269

Open
albertbern opened this issue Dec 11, 2023 · 2 comments
Open

[feature request] Delete old files #1269

albertbern opened this issue Dec 11, 2023 · 2 comments

Comments

@albertbern
Copy link

Is there a way to delete old files from all accounts?

I have an organisation and organisation users will get their large files ( huge ) via alias share links. They will download them and always forget to delete files to free space.
I use maria db and filesystem as storage.

I want to delete files, e.g. older than 1 week.
But alias share links should live forever so 3rd party could upload new files regularly.

I can use API to delete only my admin account files now, because i can`t see other users files (

Or can I somehow make old files orphaned?

@albertbern
Copy link
Author

I have wrote script: created in DB stubby share for my account , changed old files share to this stubby share and deleted stubby share via API.
Not an elegant solution.

@eikek
Copy link
Owner

eikek commented Dec 22, 2023

Currently there is no easy way to do it, unfortunately. Files uploaded via aliases are not expiring unless published. I think this script you wrote is a good way for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants