$({form id}).reset()
form id should be the id of the form that we need to reset.
Example:
<form data-action="upload-form" data-type="file-upload" id="formid" data-attribute-id="uploadfield">
<div class="upload-logo-section">
<input type="file" name="fileuploadfield" id="fileuploadfield">
<input type="hidden" name="internalid" id="internalid" value="uploadfield">
<input type="hidden" name="fileid" id="fileid" value="">
<input type="hidden" name="filelink" id="filelink" value="">
<input type="hidden" name="filename" id="filename" value="">
<input type="submit" class="checkout-fileupload-view-upload" name="submit" id="submit"
value="Upload">
</div>
<div>
<small class="msgafteruploadfield"></small>
<small class="msguploadfield"></small>
<small class="fileformaterrormessage"></small>
</div>
</form>
reset will be done by
$(‘#formid’).reset();