I also had the same problem. I think this is because the files that are being added from the server are not included in the file array, and when you call removeAllFiles() , this will not work because it is not in the atall file array.
So the obvious solution would be to add them to the file array, it would look something like this.
$(function() { var mockFile = { name: "banner2.jpg", size: 12345 }; var myDropzone = new Dropzone("#my-awesome-dropzone"); myDropzone.options.addedfile.call(myDropzone, mockFile); myDropzone.files.push(mockFile);
Now you can use myDropzone.removeAllFiles(); for any event, and files added from the server will also be deleted from dropzone.
NOTE. Remember that when using the above code. if you run server-side code to delete files from the server whenever the file is deleted from dropzone, then all files that come from the server will be deleted.
Vishal Nair Aug 20 '14 at 12:12 2014-08-20 12:12
source share