Defining Deletable Lifecycle States
Deleting an asset via Publisher is based on the respective user's user permissions and the defined deletable lifecycle states. The lifecycle state in which you can or can not delete an asset is defined in the asset extension (asset.js
) that corresponds to the asset type.
Follow the instructions below to define a set of deletable lifecycle states:
If you do not configure deletable lifecycle states in the respective asset extension, ES uses the default configurations that are available in the <ES_HOME>/repository/deployment/server/jaggeryapps/publisher/extensions/default/asset.js
file.
- Navigate to the respective asset extension in the
<ES_HOME>/repository/deployment/server/jaggeryapps/publisher/extensions/<ASSET_TYPE_NAME>/asset.js
 directory. Define the deletable lifecycle states for the selected asset type under theÂ
meta.lifecycle.deletableStates
property.A single deletable lifecycle state is defined as follows:
meta.lifecycle.deletableStates : ['State1']
ÂMultiple deletable lifecycle states are defined as follows:
meta.lifecycle.deletableStates : ['State1',’State2’]
- All the lifecycle states are defined as deletable states as follows:
meta.lifecycle.deletableStates : ['*’]
- Start the ES server or restart the ES server if it is already running.
Examples
Â
meta: { lifecycle: { deletableStates: ['Unpublished'] },
Â
Â
meta: { lifecycle: { deletableStates: ['In-Review','Unpublished'] },
Â
meta: { lifecycle: { deletableStates: ['*'] },Â