Skip to main content
Nintex Community Menu Bar
Question

How to delete WorkflowTasks with PowerShell

  • September 12, 2024
  • 0 replies
  • 43 views

Forum|alt.badge.img+2

Nintex list, WorkflowTasks, has many old items. I need a script that will delete older items from this list and bypass the recycle bin. I have a script that performs this action on NintexWorkflowHistory list and can’t figure out how to modify it for WorkflowTasks. I’m hoping someone has already created a script specific to deleting select items from the WorkflowTasks list.

The URL is https://MyDomain/sites/MySite/WorkflowTasks

After items are deleted from the list, I need SQL to purge them from the database.

SharePoint Server 2019 (hosted on prem)