dutchcoders / transfer.sh

Easy and fast file sharing from the command-line.
https://github.com/dutchcoders/transfer.sh
MIT License
15.08k stars 1.54k forks source link

How can I manage files uploaded? #577

Closed rty813 closed 10 months ago

rty813 commented 10 months ago

As the number of uploaded files increases, storage is becoming insufficient. I need to view the files that users have uploaded and delete the outdated ones.

stefanbenten commented 10 months ago

Please look at the following flag options:

Both should do exactly what you want, delete data after a certain period (days) and checks on a given interval for it.

rty813 commented 10 months ago

What if I didn't set purge-days and purge-interval?

stefanbenten commented 10 months ago

There is no alternate provided way by the binary to traverse the data. Depending on the provider used, you'll need to write yourself a script to iterate over the data or use respective UI's/tooling to do so.

rty813 commented 10 months ago

I comprehend, thank you.