delete
Removes files. Even though this command is intended to remove standard list files you are suggested to use the rmstdlist command instead. The users maestro and root in UNIX, and Administrator in Windows can remove any file. Other users can remove only files associated with their own jobs.
Syntax
delete -V | -U
delete filename
Arguments
- -V
- Displays the command version and exits.
- -U
- Displays command usage information and exits.
- filename
-
Specifies the name of the file or group of files to be removed. The name must be enclosed in quotes (") if it contains characters other than the following: alphanumerics, dashes (-), slashes (/), backslashes (\), and underscores (_). Wildcard characters are permitted.
Examples
delete d:\win32app\maestro\stdlist\2004.4.11\@
The following script, included in a scheduled job in UNIX, removes the job's standard list file if there are no errors:
...
#Remove the stdlist for this job:
if grep -i error $UNISON_STDLIST
then
exit 1
else
ˋmaestroˋ/bin/delete $UNISON_STDLIST
fi
...
The standard configuration script, jobmanrc, sets the variable UNISON_STDLIST to the name of the job standard list file. For more information about jobmanrc, see Customizing job processing on a UNIX workstation - jobmanrc.