SharePoint Online Workflow History cleanup

%3CLINGO-SUB%20id%3D%22lingo-sub-2310999%22%20slang%3D%22en-US%22%3ESharePoint%20Online%20Workflow%20History%20cleanup%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2310999%22%20slang%3D%22en-US%22%3E%3CP%3EWe%20are%20in%20the%20process%20of%20deleting%20SharePoint%202010%20Workflows.%26nbsp%3B%20When%20the%20workflows%20are%20deleted%20through%20SharePoint%20Designer%2C%20a%20prompt%20displays%2C%20%22This%20operation%20will%20also%20remove%20all%20workflow%20history%20data%20for%20this%20workflow.%22%26nbsp%3B%20Some%20users%20will%20treat%20Workflow%20History%20as%20a%20historical%20record%20or%20audit%20of%20workflow%20activity.%26nbsp%3B%20We%20want%20to%20take%20care%20before%20deleting%20Workflow%20History.%3CBR%20%2F%3E%3CBR%20%2F%3EIn%20the%20past%2C%20we%20could%20reference%20SharePoint%20on-premise%20Workflow%20History%20Cleanup%20policy%20to%20inform%20users%20that%20workflow%20history%20is%20deleted%20after%2060%20days.%26nbsp%3B%20We%20are%20unable%20to%20find%20documentation%20for%20SharePoint%20Online%20Workflow%20History%20cleanup.%26nbsp%3B%20There%20is%20this%20article%2C%20but%20is%20there%20documentation%20from%20Microsoft%3F%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fwww.spguides.com%2Fsharepoint-online-workflow-history-list%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.spguides.com%2Fsharepoint-online-workflow-history-list%3C%2FA%3E%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3CP%3ELooking%20at%20workflow%20history%20for%20one%20of%20our%20sites%2C%20it%20still%20has%20items%20from%202018.%26nbsp%3B%20Is%20there%20a%20place%20in%20the%20UI%20where%20we%20can%20set%20SharePoint%20Online%20Workflow%20History%20retention%3F%26nbsp%3B%20Can%20it%20be%20done%20with%20PowerShell%3F%3C%2FP%3E%3CP%3E%26nbsp%3B%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-2310999%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3ESharePoint%20Online%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2312193%22%20slang%3D%22en-US%22%3ERe%3A%20SharePoint%20Online%20Workflow%20History%20cleanup%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2312193%22%20slang%3D%22en-US%22%3EBased%20on%20conversation%20with%20Microsoft%20Support%2C%20items%20on%20Workflow%20History%20exist%20indefinitely%2C%20they%20are%20not%20cleaned%20up%20by%20a%20job.%20Apparently%20this%20article%20is%20still%20valid.%3CBR%20%2F%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Farchive%2Fblogs%2Fahmedamin%2Fsharepoint-workflow-auto-cleanup%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdocs.microsoft.com%2Fen-us%2Farchive%2Fblogs%2Fahmedamin%2Fsharepoint-workflow-auto-cleanup%3C%2FA%3E%3C%2FLINGO-BODY%3E
Contributor

We are in the process of deleting SharePoint 2010 Workflows.  When the workflows are deleted through SharePoint Designer, a prompt displays, "This operation will also remove all workflow history data for this workflow."  Some users will treat Workflow History as a historical record or audit of workflow activity.  We want to take care before deleting Workflow History.

In the past, we could reference SharePoint on-premise Workflow History Cleanup policy to inform users that workflow history is deleted after 60 days.  We are unable to find documentation for SharePoint Online Workflow History cleanup.  There is this article, but is there documentation from Microsoft?
https://www.spguides.com/sharepoint-online-workflow-history-list

 

Looking at workflow history for one of our sites, it still has items from 2018.  Is there a place in the UI where we can set SharePoint Online Workflow History retention?  Can it be done with PowerShell?

 

1 Reply
Based on conversation with Microsoft Support, items on Workflow History exist indefinitely, they are not cleaned up by a job. Apparently this article is still valid.
https://docs.microsoft.com/en-us/archive/blogs/ahmedamin/sharepoint-workflow-auto-cleanup