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
 

Open Device Management, All Operations. A list of current and completed operations appears.


Click on Settings. The Device Operations Settings panel appears, displaying a list of clean-up policies.


Create a new policy by clicking + Policy, or edit an existing policy by clicking (Table row actions), Edit.


Specify a name for the policy, and click Enable Policy to make the policy active.


In the Operations older than (days) field, specify how old, in days, an operation must be before the policy removes the operation.


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.


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.


Click Save to save the policy and close the form.

End of steps