clear input file

Hello, I have a query in my project, I have a select type field and several fields to upload files (Document (Database)
What I am trying to do is that depending on the selected item of the select, they clear some file upload fields

Is there a macro in scriptcase that removes the uploaded file and leaves that field empty

and tried document.getElementById(“file”).value=""; but it doesn’t come off