Unpublish and Delete Trigger


Often within the context of a workflow process there is a need to unpublish an asset before removing it from the system. In this case, the Unpublish and Delete trigger can be used in place of the Delete trigger.

When the asset in the workflow is not a publishable asset (Template, Symlink, Format, Block, Reference), this trigger performs a standard delete. However, when the asset is a publishable asset (File, Page, or Folder) and has publishable Destinations, the trigger attempts to unpublish the asset (and all child assets if a Folder asset) from all Destinations prior to removing it from the system.


            <trigger class="com.cms.workflow.function.DeleteAndUnpublish" name="UnpublishAndDelete"/>


            <trigger name="UnpublishAndDelete"/>


Authorizing-Type Parameter


The authorizing-type parameter is set when calling the trigger on an action. The authorizing-type parameter is used in any trigger that executes to a publish and is used to specify which user is "authorizing" the publish in this step. This will affect permissions/roles checks performed during publish and also to whom the publish report is delivered to. The "system" user is basically a way to bypass any permissions/roles checks but results in the publish report not being sent to anyone.

Authorizing-type can take the following values:

  • current-step-owner - the user assigned to the step that calls the trigger
  • user - a specified user
Note - The Unpublish and Delete trigger cannot use the "system" authorizing-type value, as the trigger requires a real username to be used to authorize deletion that occurs before unpublish.
Authorizing-User Parameter


This parameter is used if 'user' is selected as the value for the authorizing-type parameter. This parameter's value can be any valid username.