---
title: "uploader.enableOriginalFilesDeletion Property  ActiveX/Java Uploader JavaScript"
canonical: https://www.aurigma.com/docs/us8/JA_P_J_$au_uploader_enableOriginalFilesDeletion.htm
product: "Upload Suite 8"
---

# uploader.enableOriginalFilesDeletion Property ActiveX/Java Uploader JavaScript

Supported browsers: ![Internet Explorer](https://www.aurigma.com/docs/us8/icons/ie8.png)![Firefox](https://www.aurigma.com/docs/us8/icons/firefox.png)![Google Chrome](https://www.aurigma.com/docs/us8/icons/chrome.png)![Safari](https://www.aurigma.com/docs/us8/icons/safari.png)
 
Gets or sets a value indicating whether successfully uploaded files should be deleted.

## Syntax
 
```
$au.uploader({
    //...other params...
    enableOriginalFilesDeletion: false,
    //...other params...
})
```

```
$au.uploader('uploaderID').enableOriginalFilesDeletion(value);
value = $au.uploader('uploaderID').enableOriginalFilesDeletion();
```
 
### Property Value
 
Type: **Boolean**
 
If `true`, after successful upload ActiveX/Java Uploader shows a dialog, asking a user whether the uploaded files should be deleted. If a user clicks **Yes**, the files will be deleted.
 
Default value is **false**.

## Remarks
 
**Note** 
A difference between ActiveX/Java Uploader behavior in Internet Explorer and [other supported browsers](https://www.aurigma.com/docs/us8/system-requirements.htm.md) is the following. When ActiveX/Java Uploader deletes files in Internet Explorer, it moves them in the way specified in the Recycle Bin properties. By default, a standard delete confirmation dialog appears and files are moved to the Recycle Bin if a user clicks **Yes**. However, if ActiveX/Java Uploader deletes files in any of [other supported browsers](https://www.aurigma.com/docs/us8/system-requirements.htm.md), the internal delete confirmation dialog appears and files are removed permanently when a user clicks **Yes**.
 
If the file cannot be deleted, the [deletingFilesError](https://www.aurigma.com/docs/us8/JA_P_J_$au_messages_deletingFilesError.htm.md) message appears.

## See Also
 
### Reference
 
- [deleteFilesDialog Class](https://www.aurigma.com/docs/us8/JA_T_J_$au_deleteFilesDialog.htm.md)
- [Aurigma.ImageUploader.Uploader.EnableOriginalFilesDeletion ASP.NET PropertyActiveX/Java Uploader](https://www.aurigma.com/docs/us8/JA_P_Aurigma_ImageUploader_Uploader_EnableOriginalFilesDeletion.htm.md)
- [Uploader.EnableOriginalFilesDeletion PHP PropertyActiveX/Java Uploader](https://www.aurigma.com/docs/us8/JA_P_P_Uploader_EnableOriginalFilesDeletion.htm.md)
