If i run below commands without -site parameter it goes through the entire farm:
.\NWAdmin.exe -o PurgeWorkflowData -deletedLists -silent
.\NWAdmin.exe -o PurgeWorkflowData -lastActivityBeforeLocal $SixMonthOld -state "Running" -silent
There are some site collections being locked in our farm. So can you please confirm what will happen if it runs through the locked site collection?