CLI Reference > Server Administration Commands > im deletestate
 
im deletestate
deletes a state
Synopsis
im deletestate [--[no]confirm] [--user=name] [--hostname=server] [--password=password] [--port=number] [(-?|--usage)] [(-F file|--selectionFile=file)] [(-N|--no)] [(-Y|--yes)] [--[no]batch] [--cwd=directory] [--forceConfirm=[yes|no]] [-g|--gui] [--quiet] [--settingsUI=[gui|default]] [--status=[none|gui|default]] state...
Description
im deletestate deletes a state for workflows and documents. You can only delete a state if it is idle, that is, if no one has used this state in any issue.
Options
This command takes the universal options available to all im commands, as well as some general options. See the options reference page for descriptions.
--[no]confirm
specifies whether to be prompted to confirm the deletion of the state. By default, you are prompted to confirm the deletion of the state.
state...
specifies the names of states you want to delete.
See Also
Commands: im createstate, im editstate, im viewstate, im states
Miscellaneous: options