We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date
close icon

How to remove all uploaded files from server side

Dear Support,

I am using clear all button to remove all attached files to the uploader. It is removing from the filelist, however my remove url is not fired and the file is not removed from server.

Let me know your va



1 Reply 1 reply marked as answer

YS Yohapuja Selvakumaran Syncfusion Team October 19, 2022 07:22 AM

Hi Gani,

We have checked your reported query. By default, the clearAll method only removes the uploaded files at DOM element. If you wish to remove uploaded files on server side, you can use remove method when button click action performed. The remove method triggered the server side remove url and you can able to remove all uploaded files in server side.


document.getElementById('clearbtn').onclick = () => {



Sample: https://stackblitz.com/edit/nkeqad-vrqec3?file=index.js,index.html

API link: https://ej2.syncfusion.com/javascript/documentation/api/uploader/#remove



Marked as answer
Live Chat Icon For mobile
Up arrow icon