I am using the <http://www.dropzonejs.com/> (dropzone.js) library. I have initialized one of my form element as,

```
   var drop = $("#upload").dropzone({
                uploadMultiple: "true",
                addRemoveLinks: "true",
                thumbnailWidth: "250",
                thumbnailHeight: "250",
                maxFilesize: "10",
                headers: {
                    "title": titles,
                    "location": locations,
                    "tag": tags
                    }                   
            });

```

Now when user clicks on a `<button id="close"></button>` button, I want to empty the whole list using the `drop.removeAllFiles(true)` function, as suggested on Dropzone.js official website.

So, I tried using

```
 $("#close").click(function(){
      drop.removeAllFiles(true);
   });

```

But it's not working, In `console.log` I am getting the error `removeAllFiles() is not declared for drop`.

Where am I wrong?