How do I automate the cleanup of completed operations?
Purpose
You can create Operation Clean-up policies to automatically delete operations after a specified time. A policy can apply to all operations, or only operations of specific types. The default clean-up policy removes operations that are older than 30 days, triggering once a day at 07:30 am.
Note: You can create multiple policies for the same filter, but the lifecycle of duplicate policies should be closely managed. Cleanup is not applied to operations created as a part of importing node images during the nsp-ne-sw-import operation.
Steps
1 |
Open Device Management, All Operations. A list of current and completed operations appears. |
2 |
Click on Settings. The Device Operations Settings panel appears, displaying a list of clean-up policies. |
3 |
Create a new policy by clicking + Policy, or edit an existing policy by clicking (Table row actions), Edit. |
4 |
Specify a name for the policy, and click Enable Policy to make the policy active. |
5 |
In the Operations older than (days) field, specify how old, in days, an operation must be before the policy removes the operation. |
6 |
To restrict the policy to clean up only certain types of operations, click on the Filter (Operation types) drop-down and select operation types from the list. You can click multiple times to select multiple types. |
7 |
Configure a schedule to specify when the policy checks the current age of all operations and performs a clean up. You can select daily, monthly, or weekly cleanups, or provide a cron expression. |
8 |
Click Save to save the policy and close the form. End of steps |