content.deleteΒΆ

This command deletes a content.

Arguments:

key (string)
Path or id to the content.
branch (string)
Set by portal, depending on context, to either draft or master. May be overridden, but this is not recommended. Default is the current branch set in portal.

Example:

var result = execute('content.delete', {
    key: '/my/content'
});

if (result) {
    log.info('Content deleted');
} else {
    log.info('Content was not found');
}