Previous Topic: rm[x]grp Command—Delete Group Records

Next Topic: rm[x]usr Command—Delete User Records

rmres Command—Delete a Resource

Valid in the AC environment

The rmres command removes resources from the database. Records belonging to the following classes can be deleted using the rmres command: ACVAR, ADMIN, APPL, CATEGORY, CONNECT, FILE, GAPPL, GHOST, GSUDO, GTERMINAL, HNODE, HOST, HOSTNET, HOSTNP, LOGINAPPL, MFTERMINAL, POLICY, PWPOLICY, SECFILE, SECLABEL, SPECIALPGM, SUDO, SURROGATE, TERMINAL, PROGRAM, PROCESS, RULESET, TCP, UACC, and any user defined class.

Note: This command also exists in the native Windows environment but operates differently.

To remove a record from the database, you must meet one of the following conditions:

This command has the following format:

{rmres|rr} className resourceName
className

Specifies the name of the class to which the resource belongs. To list the resource classes defined to CA Access Control, use the find command. See the find command in this chapter for more information.

resourceName

Specifies the name of the resource record you are deleting. When removing more than one resource, enclose the list of resource names in parentheses and separate the resource names with a space or a comma.

CA Access Control processes each resource record independently. If an error occurs while processing a resource, CA Access Control issues a message and continues processing with the next resource in the list.

Example

The user Admin1 wants to remove the record TERMS from the TERMINAL class in the database.

More information:

chres Command—Modify Resource Records

showres Command—Display Resource Properties

rmres Command—Delete a Windows Resource

find Command—List Database Records