How does the AssetCleanup policy work?
Hello team,
We have a test community and we are trying to automate deletion of all assets in the community that are in a particular state and are longer than a month old.
We have configured the Asset Cleanup Policy in the required state in the lifecycle and using the Timer and set it to 1 month. Is there a job that triggers automatically finds all such assets from the system and deletes them from the system.?
Please can you let us know how this works?
Thanks!
Regards,
Sripriya
One answer
The policy, when executed will either delete, or retire older versions of that (GUID) asset.
The intent of this policy is that all versions of that asset will follow a life-cycle where this policy is executed at some state (e.g, when approved) ... in which point it will remove older versions - hence no need to run it on a timer.
For for the timer, you can configure a policy to run inline (same thread that makes the asset update), or in a background thread.
The intent of this policy is that all versions of that asset will follow a life-cycle where this policy is executed at some state (e.g, when approved) ... in which point it will remove older versions - hence no need to run it on a timer.
For for the timer, you can configure a policy to run inline (same thread that makes the asset update), or in a background thread.