javascript clear file input

JavaScript
document.getElementById("myFileInputID").value = null;
Source

Also in JavaScript: