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