Clear Cache for file upload

I am trying to figure out how to clear cache when I upload a file to streamlit app. Even though I upload a different file , the app continues to use the previously uploaded file
Thanks for your feedback

Hey @dkamalakar,

Welcome to the Streamlit community! Can you add some of your code, or a minimal demo in of what you’re having trouble with?

In the mean time, are you uploading a different/edited file with the same name/path? If you are and you are using the @st.cache decorator when you run your script, it will not update. You will need to remove this to load an edited/new file with the same name.

However, this will mean that every time your app needs to re-run, the user will have to wait for the file to be reloaded.

Happy Streamlit-ing!