Automatic deletion? #268

Closed
opened 2026-01-19 18:29:40 +00:00 by michael · 2 comments
Owner

Originally created by @JustAnotherArchivist on GitHub.

The web frontend includes a hardcoded message that "files [are] stored for 14 days", implying an automatic deletion 2 weeks after the upload. But is that actually the case? I know that https://transfer.sh/ did (when you were still running it) and still does delete files after a while, but I was unable to find any code for this. Did I just miss it, or is/was that something external like a cronjob running find with -mmin and -delete? If it is the former, how could the deletion be adjusted to keep files for a longer time?

Originally created by @JustAnotherArchivist on GitHub. The web frontend includes a [hardcoded](https://github.com/dutchcoders/transfer.sh-web/blob/e7d393abbb072dc15fca8581c090fc3e8a936324/src/index.html#L100) message that "files [are] stored for 14 days", implying an automatic deletion 2 weeks after the upload. But is that actually the case? I know that https://transfer.sh/ did (when you were still running it) and still does delete files after a while, but I was unable to find any code for this. Did I just miss it, or is/was that something external like a cronjob running `find` with `-mmin` and `-delete`? If it is the former, how could the deletion be adjusted to keep files for a longer time?
Author
Owner

@paolafrancesca commented on GitHub:

@JustAnotherArchivist for current codebase there's a X-Url-Delete delete header with an URL you can send a DELETE request to to delete the file

@paolafrancesca commented on GitHub: @JustAnotherArchivist for current codebase there's a `X-Url-Delete` delete header with an URL you can send a `DELETE` request to to delete the file
Author
Owner

@paolafrancesca commented on GitHub:

@JustAnotherArchivist there's no code related to it. I never managed https://transfer.sh so I don't know what was the case here and what's going on now. I will remove the message in the codebase of the frontend

@paolafrancesca commented on GitHub: @JustAnotherArchivist there's no code related to it. I never managed https://transfer.sh so I don't know what was the case here and what's going on now. I will remove the message in the codebase of the frontend
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: dutchcoders/transfer.sh#268