Consider the following scenario:
- In SharePoint Online or SharePoint Server, you have a workflow that’s using the SharePoint 2013 Workflow Platform Type.
- The workflow uses the Assign a Task or Start a task action.
In this scenario, after the workflow completes, the completed task isn’t deleted.
This is expected behavior for workflows that use the SharePoint 2013 Workflow Platform Type. Completed workflow tasks aren’t deleted. Incomplete workflow tasks are deleted by default, unless you change the PreserveIncompleteTasks setting to Yes for the properties of the task within SharePoint Designer 2013. Workflows using the SharePoint 2010 Workflow Platform Type delete both completed and incomplete tasks by default.
Still need help? Go to Microsoft Community.