dont delete files from input file javascript code example Example: javascript clear file input document.getElementById("myFileInputID").value = null;