DELETE SCRIPT (Delete command lines from a script or delete the entire script)

Use this command to delete a single line from an IBM Spectrum® Protect script or to delete the entire IBM Spectrum Protect script.

Privilege class

To issue this command, the administrator must have previously defined the script or must have system privilege.

Syntax

Read syntax diagramSkip visual syntax diagramDELete SCRipt script_nameLine=number

Parameters

script_name (Required)
Specifies the name of the script to delete. The script is deleted unless you specify a line number.
Line
Specifies the line number to delete from the script. If you do not specify a line number, the entire script is deleted.

Example: Delete a specific line from a script

Using the following script named QSAMPLE and issue a command to delete line 005 from it.
001  /* This is a sample script */
005  QUERY STATUS
010  QUERY PROCESS
delete script qsample line=5

Related commands

Table 1. Commands related to DELETE SCRIPT
Command Description
COPY SCRIPT Creates a copy of a script.
DEFINE SCRIPT Defines a script to the IBM Spectrum Protect server.
QUERY SCRIPT Displays information about scripts.
RENAME SCRIPT Renames a script to a new name.
RUN Runs a script.
UPDATE SCRIPT Changes or adds lines to a script.