title: Dropzone.js remove files after an event is fired
body: <p>so heres my code:</p>
  
  <pre><code> Dropzone.options.myDropzone = {
  
    // Prevents Dropzone from uploading dropped files immediately
    autoProcessQueue: false,
  
    init: function() {
      var submitButton = document.querySelector("#submit-all")
          myDropzone = this; // closure
  
        submitButton.addEventListener("click", function() {
        myDropzone.processQueue(); // Tell Dropzone to process all queued files.
        myDropzone.removeAllFiles();
        console.log("a");
  
      });
  
  // You might want to show the submit button only when 
  // files are dropped here:
  this.on("addedfile", function() {
    // Show submit button here and/or inform user to click it.
  });
  </code></pre>
  
  <p>}
  };</p>
  
  <p>how can I add removeAllfiles after clicking the upload button. thanks</p>