delete
You can use the delete command to remove the scheduling items from the database.
Overview
You can use the command option to delete items located at specific folder or a multiple items that are located at different folders. You must have the delete access to remove scheduling items.
Syntax and command line options
ocli model delete | de | del Scheduling item [;noask]| Scheduling items | Description | 
|---|---|
| folder | fol
                                    foldername | If you do not provide the foldername or if the folder contains scheduling items, an error message is displayed. Wildcard characters are permitted. | 
| jobs | jobdefinition | jd
                                            [[folder/]workstationame#][folder/]jobname
                                         | You can specify the jobname that you want to delete. You can provide [folder/]workstationame#] and the folder in which the job stream is defined to make the selection more specific. Wildcard characters are permitted. | 
| sched | jobstream | js
                                            [[folder/]workstationame#][folder/]jstreamname[valid
                                            from date|valid to date |valid in date date] [;full]
                                            [;force]  | You must specify the jstreamname that you
                                    want to delete. You can provide
                                        [folder/]workstationame#] and the folder
                                    name to make the selection more specific. Wildcard characters
                                    are permitted. You can also add the options below to provide
                                    more details of the job stream. Valid from date: You can specify a date which will restrict the selection of job streams, that have a valid from date equal to the value specified. The format is mm/dd/yyyy. Valid to date: You can specify a date which will restrict the selection of job streams, that have a valid to date equal to the value specified. The format is mm/dd/yyyy. valid in
                                            date date: Specify the time frame at which the
                                        job is run. You can specify one of the dates as
                                             full: If you add the option, all the job definitions in the job stream are displayed. Important: To delete a job stream that has been
                                        referenced in other items, use the command ./ocli model
                                            delete js jobstreamSelector ;force. When you use
                                            force, not only the job streams are deleted, but
                                        also all the references associated with it. | 
| workstation | ws | cpu
                                            {[folder/]workstationame
                                     | You can specify the name of the workstation that you want to delete. Optionally, you can provide the folder in which the items are located. Wildcard characters are permitted. | 
;noask
When you add the option as an argument the agent will not ask for confirmation before taking action on each qualifying job.
Examples
- Run the following command to delete sac5stored in theoldfolderfolder that is launched on workstationstat1stored in thetestfolder:ocli model delete jobs=test/stat1#oldfolder/sac5
- Run the following command to delete all workstations with names starting with
                        xl:ocli model de cpu=xl@
- Run the following command to delete all job streams stored in the folder path
                        test/oldfolderon all workstations:ocli model de sched=@#test/oldfolder/@