Product Site

8.49. SysRmDir

Deletes a specified file directory without your confirmation.

Parameter:
dirspec

The directory that should be deleted. The name does not support wildcard characters. On Unix-like systems, if the first character is a ~ (tilde) character optionally followed by a username, it is replaced by the current or specified user's home directory.

Return codes:
0

Directory removal was successful.
Other

An operating system error code. On Windows, this may be one of the following, but could be others.
2

File not found.
3

Path not found.
5

Access denied or busy.
16

Current directory.
26

Not a DOS disk.
32

Sharing violation.
108

Drive locked.
123

Invalid name.
145

Directory not empty.
146

Is Subst Path.
147

Is Join Path.
206

File name exceeds range.
Example 8.36. RexxUtil — SysRmDir
call SysRmDir "backup"