E.11 Action - File Removal

The Action - File Removal dialog box lets you specify files or directories to remove from the device.

Figure E-11 Action File Removal Dialog Box

You access this dialog box by using the following methods:

You can use this action to perform an automated system cleanup. For example, you can specify that the c:\windows\Temp\Temporary Internet Files directory and all files matching c:\windows\Temp\*.log in are removed from the device.

You cannot remove read-only files. If you specify a directory that contains several files (including some read-only files), the directory and the read-only files are not removed when the File Removal action runs. The files that are not read-only, however, are removed from the device.

Full Path to Source Files/Directories: Specify the full path to the file or directory that you want to remove, then click Add to add the file or directory to the list. You can use wildcard characters. If you use a mapped network drive to specify the path, you must select User from the Run Action As list.

Include System Files: Select this option to remove system files. If you specify a directory for removal that includes both system and non-system files, only non-system files are deleted, unless you specify this option.

Delete Folder Only if Empty: Select this option if you want to remove the specified folders only if they are empty.

When a File is Locked, Retry _Times, Every _Seconds: If a file is locked when the action is performed, the file cannot be removed. Select the check box and then specify the number of retry attempts and the time interval between attempts. By default, the action is retried 3 times with 5 seconds between each attempt.

Run Action As: Specify System (the default) or User from the Run Action As list. Specify System if removing files requires access to all areas of the device’s file system. If you use mapped network drives to specify files and directories, you must run the action as User, else the action fails because system users do not have access to user mapped drive