SummaryWhen running NWAdmin.exe PurgeHistoryListData, the command appears stuck at "Querying Items" and does not complete.
SolutionCancel the PurgeHistoryListData execution and re-run the command with the " -verbose " flag. For example:
nwadmin.exe -o PurgeHistoryListData -SiteURL https://nsp-support-test/sites/home -WorkflowName "Testing Workflow" -verbose
Note: When purging large history lists, the PurgeHistoryListData command can run for an extended period of time. Without the -verbose flag, it may appear the command is hung even when it is still processing data.