Command reference / ifs

ERASE

Remove Link

The Remove link (ERASE) command removes the link to the specified object. If this is the only hard link to the object, the object is removed when no longer in use. The object can be removed even if a symbolic link to it exists. The symbolic link remains until it is removed. This command is an alias for the Remove link (RMVLNK) command and can also be issued using the following alternative command names: DEL RMVLNK For more information about integrated file system commands, see the Integrated file system topic collection in the IBM i Information Center at http://www.ibm.com/systems/i/infocenter/.

Allowed environments: *ALL. Positional parameters: 1.

Restrictions

Parameters

OBJLNK Object link

Specifies the path name of the object to unlink. Multiple links can be removed with a name pattern. The object path name can be either a simple name or a name that is qualified with the name of the directory in which the object is located. A pattern can be specified in the last part of the path name. An asterisk (*) matches any number of characters and a question mark (?) matches a single character. If the path name is qualified or contains a pattern, it must be enclosed in apostrophes. For more information on specifying path names, refer to "Object naming rules" in the CL topic collection in the Programming category in the IBM i Information Center at http://www.ibm.com/systems/i/infocenter/. Note: This parameter is Unicode-enabled. See "Unicode support in CL" in the CL topic collection in the Programming category in the IBM i Information Center at http://www.ibm.com/systems/i/infocenter/ for additional information.

Type
*CHAR
Required
Yes
Length
5000
Case
Mixed case

Examples

RMVLNK OBJLNK('PAY')

Removing an Object Link. This command removes a link named PAY.

IBM command documentation

Generated from os/cl/catalog/ERASE.json and os/cl/help/ERASE.json.