--unregisterrer

Syntax

kenaflow.exe --unregisterrer [--workflow <path-or-folder>] [--currentdirectory <folder>] [--web <web-url>]
kenaflow.exe --unregisterrer --all [--workflowroot <folder>] [--currentdirectory <folder>] [--web <web-url>]

Description

The first syntax is used to unregister remote events with SharePoint for a dedicated workflow.

You can execute kenaflow.exe --unregisterrer from within the workflow folder or you can specify a workflow folder using --workflow <folder> or you can specify a workflow config file (_wfconfig.ps1) using --workflow <path>.

The second syntax is used to unregister remote events for all SharePoint workflows in the workflow root folder that are ENABLED (Enabled = $true).

Therefore use switch --all in addition to --unregisterrer.

With --workflowroot <folder> you set the workflow root folder. This overwrites the global configuration setting in Section "AfterSetup" for the current execution.

For both options:

With --currentdirectory <folder> the working directory of the process can be set.

In case of SharePoint workflows that are connected to multiple webs you can specify --web <web-url> to specify the web that only should be processed.

Discussion