delete

You can use the delete command to remove any plug-in from the database.

Overview

You can run the delete command to remove a single plug-in or multiple plug-ins. Use wildcards to remove multiple plug-ins. If you delete a plug-in, the action is permanent and cannot be reversed. You must have DELETE_PLUGIN access to run this command. For more information, see Access required to run Orchestration CLI commands.
Notes:
  1. You can remove the sole version of a plug-in if the following conditions are met:
    • If a JobInPlan uses the plug-in, then it must be in one of the final states (SUCC, FAIL, ABEND, or SUPPR).
    • No task definitions in the database use the plug-in.
  2. The process of removing a plug-in takes up to a maximum of 5 minutes. It is recommended not to attempt to save a task definition that contains the same plug-in during this period. Although the task can be saved, it cannot run because the plug-in has been deleted.

Syntax and command line options

You can enter the command as follows;
ocli plugin [delete | d ] plugin_name [;type=plugin_type] [;version=plugin_verison] [;noask]
Only the plugin_name parameter is mandatory. The details required with each parameter are as follows:
plugin_name
Specify the plug-in to delete. Wildcard characters are supported.
type=plugin_type
Specify the the type of plug-in and possible values are job and event.
version=plugin_verison
Specify the version of the plug-in.
noask

When you add the noask option as an argument, the agent does not ask for confirmation before it acts on each qualifying item.

Examples

  1. Run the following command to delete multiple plug-ins starting with the name AWS.
    ocli plugin delete AWS@
  2. Run the following command to delete ServiceNow plug-in.
    ocli plugin delete ServiceNow