Welcome to the InfinityFree community forum! Good to have you here.
Most people answering here are volunteers. They’re often the fastest source of help. Admin (the only staff member) checks in about once a day for issues on our end.
Volunteers can’t see your account or website. Share what you actually see, like error messages and what happens when you try something. That’s more useful than your theory of what’s wrong.
AI tools often get InfinityFree wrong. If a volunteer’s advice differs from what an AI told you, please try the volunteer’s suggestion first.
Solving an issue is a joint effort. Try the suggestions you get and report back what happened.
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.
I’m afraid the files can’t be restored from our side. Free hosting accounts aren’t backed up. A staff answer on an earlier topic says it like this:
In general, the files you can see are the files we have. We don’t create backups of free hosting accounts. So if you accidentally modify or delete data on your account, […] then we have no way to restore the original files.
Other people who deleted htdocs were told the same thing. One example is this topic:
The only way back is to upload your own copy of the site again. If you have the files on your computer, from when you built or first uploaded the tool, upload those to htdocs and the site should come back. The same goes for an old download or a copy in a Git repository.
If the site used a MySQL database, deleting the files wouldn’t have touched it, so your data may still be there. I haven’t checked that, though. You can look in the control panel to see whether the database is still listed.