I found the below solution to clear the workflow history
Here are the scripts we need to test in the test environment that will clear the workflow history. In production I want to clear everything before January 1 2018. We can be more aggressive than that in test.
The only thing I ask is that we do not run this against Global Accounting in test. I need to make sure they are no longer using this data for auditing purposes.
The production scripts will need to be run off working hours.
This make take a few days to complete for each site collection.
NWAdmin.exe –o PurgeHistoryListData -siteUrl <site collection URL> -lastActivityBefore 2018-01-01 00:00 -state COMPLETED
NWAdmin.exe –o PurgeHistoryListData -siteUrl <site collection URL> -lastActivityBefore 2018-01-01 00:00 -state CANCELLED??????????????
NWAdmin.exe –o PurgeHistoryListData -siteUrl <site collection URL> -lastActivityBefore 2018-01-01 00:00 -state ERROR
Here are the scripts we need to test in the test environment that will clear the workflow history. In production I want to clear everything before January 1 2018. We can be more aggressive than that in test.
The only thing I ask is that we do not run this against Global Accounting in test. I need to make sure they are no longer using this data for auditing purposes.
The production scripts will need to be run off working hours.
This make take a few days to complete for each site collection.
NWAdmin.exe –o PurgeHistoryListData -siteUrl <site collection URL> -lastActivityBefore 2018-01-01 00:00 -state COMPLETED
NWAdmin.exe –o PurgeHistoryListData -siteUrl <site collection URL> -lastActivityBefore 2018-01-01 00:00 -state CANCELLED??????????????
NWAdmin.exe –o PurgeHistoryListData -siteUrl <site collection URL> -lastActivityBefore 2018-01-01 00:00 -state ERROR
No comments:
Post a Comment