clearing object data in javascript file from html file code example Example: javascript clear file input document.getElementById("myFileInputID").value = null;