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:
Note |
---|
If you do not configure deletable lifecycle states in the respective asset extension, ES uses the default configurations that are available in the |
- 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 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
Code Block |
---|
meta: { lifecycle: { deletableStates: ['Unpublished'] }, |
Code Block |
---|
meta: { lifecycle: { deletableStates: ['In-Review','Unpublished'] }, |
...
Code Block |
---|
meta: { lifecycle: { deletableStates: ['*'] }, |