Delete File Action
Specify a path and file name to delete when a trigger and/or condition is satisfied. For example, this condition could be used to delete a file containing sensitive information, when any user without Administrator rights logs on.
Conditions and File Exclusions can be configured using the appropriate standard tabs.
Create a Delete File Action
- Select the Policy Configuration navigation button.
- Select a node or condition.
-
In the Actions ribbon, select File & Folder > Delete File.
The Delete File dialog displays showing the Select File tab.
- Click Add.
- In the Source field, use the ellipsis (...) to navigate to the file you want to delete.
- If required, select the Force delete checkbox. This ignores the Read-only attribute enabling the file to be deleted. If this option is not selected, read-only files are not deleted.
-
Repeat steps 3 to 6 to create further actions within the dialog. A separate action is created for each action in the selected node. Highlight an action and click Remove to delete an action from the dialog box.
- Complete the
optional tabs as required.
See also Configuring Actions in the Action Management help. - Click OK.
Each action in the dialog is created in the selected node.
Example: Delete a file if it was last accessed more than a year ago
- Select the Policy Configuration navigation button.
- Select a node or condition.
-
In the Actions ribbon, select File & Folder > Delete File.
The Delete File dialog displays showing the Select File tab.
- Click Add.
- In the Source field, click the ellipsis (...) and navigate to the file you want to delete.
-
If required, select the Force delete checkbox.
This ignores the Read-only attribute enabling the file to be deleted. If this option is not selected, read-only files are not deleted.
- Select the Condition tab.
-
Select Use file conditions.
The condition options in the dialog become active.
- In the Property drop-down, select Last Modified Time.
-
In the When drop-down, select Is Older Than.
The Date/Time boxes become inactive.
-
In the Days spinbox, enter a time period in whole days, in this case 365.
You can enter between 1 - 999 days. You cannot enter fractions of days.
-
Click OK.
The action is added to the selected node.
- Save the configuration.