empty input file code example
Example 1: jquery clear file input
//clear a file input with jQuery
$("#myFileInputID").val(null);
//clear file input in plain Javascript
document.getElementById("myFileInputID").value = null;
Example 2: javascript set file input value to null
document.getElementById("myInputFileID").value=null;