How can I delete a file?
scotwllm
HOBBYOP

2 months ago

I have a file on Railway that I want to delete. How can I do that?

$10 Bounty

3 Replies

Railway
BOT

2 months ago

Hey there! We've found the following might help you get unblocked faster:

If you find the answer from one of these, please let us know by solving the thread!


You can SSH into your service and delete the file from there.

Alternatively, if the file is on a volume, you can also deploy a Filebrowser service, temporarily mount the volume to Filebrowser, then delete the file from the web UI.


scotwllm
HOBBYOP

2 months ago

May I withdraw this question? I had a file named search-index.json that provided the data that would be searched by another file. We weren't getting the results we expected, and we blamed the search-index.json file. I thought I deleted it--it wasn't in the GitHub repository--but I could print it to screen by just typing search-index.json in the browser. It turns out I was wrong about a couple of things. The reason the results weren't what I expected is some of the fuse parameters were set too tight. After relaxing them a bit, I was getting the correct results from the search query. But that left the question of where the app was getting the info for the results. I couldn't find a file named search-index.json anywhere. Finally I realized that the app was gathering and formatting the data from all the json files on my site and storing it in memory only, and it was being used to complete the search results report. It wasn't being written to disk at all. Thank you to everyone who put any thought at all into how to solve this problem. Hopefully it wasn't very many of you. If I had asked during the week I imagine the number would have been higher.


Loading...