DHTMLX Docs & Samples Explorer

setAutoRemove(true/false)

Called with the true value, the method enables the mode in which files are immediately removed from the item after complete downloading.

var myUploader = myForm.getUploader(name); 
myUploader.setAutoRemove(true);

Similarly to the autoRemove parameter.