| Input Parameters | Significance |
| DtvLong iwd | widget Id [0 = active widget] |
| Output Parameters | Significance |
| no | - |
| Return Code | Significance |
| 0 | no error |
| 1 | no widget active |
| 2 | trash-basket widget cannot be deleted |
| 3 | mask can not be deleted (userexit error) |
Prior to deleting DataView will execute the Post_Mask userexit defined at the mask. If the userexit returns an error, DataView will cancel the deleting process.
The function automatically invokes the widget-delete listener function.