ImageGear Professional v18.2 > API Reference Guide > TWAIN Component API Reference > TWAIN Component Objects > IGTwainCtl Control > IGTwainCtl Methods > DeleteFile Method |
Deletes a file or directory on the device. Pathnames are not allowed, only the name of the file or directory to be deleted can be specified. Recursive deletion can be specified by setting the Recursive to True.
Use OpenSource to select the desired Data Source, prior to calling this method.
DeleteFile(FileName As String, Recursive As Boolean)
Name | Description |
---|---|
FileName | The name of the file to delete. |
Recursive | Specifies whether it is recursive deleting or not. |
N/A