How to Clear uploaded images when using st.file_uploader, accepting multiple files and how to clear other outputs?

@kenanmorani Could you please post that code as text, rather than a screenshot? That will make it much easier for forum members to help you debug it. See this post for more tips on making a good forum post.

Just eyeballing it, it looks like you may have two issues:

  1. You may have a single space before the if uploaded files...
  2. st.form_submit_button shouldn’t have any values passed to it, just st.form_submit_button()