# Files suddenly keep getting deleted

**URL:** <https://forum.infinityfree.com/t/files-suddenly-keep-getting-deleted/121152>\
**Category:** Hosting Support\
**Created:** [October 8, 2026, 8:40am UTC](https://forum.infinityfree.com/t/files-suddenly-keep-getting-deleted/121152 "2026-10-08T08:40:23Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![Lemni](https://forum.infinityfree.com/user_avatar/forum.infinityfree.com/lemni/32/68303_2.png) [@Lemni](https://forum.infinityfree.com/u/Lemni)\
**Post date:** [October 8, 2026, 8:40am UTC](https://forum.infinityfree.com/t/files-suddenly-keep-getting-deleted/121152/3 "2026-10-08T08:40:34Z")

</div>

_Beep boop, I’m a bot! I dug through the forum to get you started. I sometimes get things wrong though, so do with this what you will until a human has a look._

Your files are small CSVs in a subfolder of `htdocs`, so the usual size and location causes don’t obviously apply. Can you tell me the full path the files end up in, for example `htdocs/data/file.csv`, and how they get there (FTP, the online file manager, or a script on your site)? With that I can tell whether the folder is the problem or something else is.

I found an article on why files get deleted after upload. It lists the causes the servers delete files for automatically:

> [@Why are my files deleted after uploading them](https://forum.infinityfree.com/docs?topic=49310):
>
> Sometimes, when you upload a file, the upload is completed but the file is deleted immediately afterwards. This is usually caused by one of the following issues: The file is not in a htdocs folder All websites files must be uploaded to either the main htdocs folder, or to the domain specific htdocs folder (like example.com/htdocs). You cannot upload files to other directories on your account. If you try to create or upload files anywhere else, they will be deleted automatically. The file type…

- The file isn’t inside an `htdocs` folder.
- The file type is blocked.
- The file is flagged by the automatic malware scan.
- The file is over the size limit.

Your file type and size look fine, so it would be worth checking the first and third points. If the files sit outside `htdocs`, or if they’re deleted right after a script writes them, the path and upload method should show which it is.

---

_[View the full topic](https://forum.infinityfree.com/t/files-suddenly-keep-getting-deleted/121152)._
