Command syntax

The general syntax of the command is shown below. The table provides examples.

Deleting a profile

To delete a specified profile, the syntax is:

lsdelete PROFILE [ProfileID]

where "ProfileID" is the name of the profile to be deleted. If you do not specify a profile ID, all profiles will be deleted.

Deleting security classes

To delete security classes, the syntax is:

lsdelete SECCLASS [ProfileID] [class1,class2,class3]

where "ProfileID" is the profile that contains the security classes

and where "class1,class2,class3" stands for the names of the specific security classes to be deleted. If you do not specify security classes, all classes in the profile will be deleted.

Deleting element groups

To delete element groups, the syntax is:

lsdelete ELMGRP [ProfileID] [elmgrp1,elmgrp2,elmgrp3]

where "ProfileID" is the profile that contains the element group

and where "elmgrp1,elmgrp2,elmgrp3" stands for the names of the specific element groups to be deleted. If you do not specify the group names, all element groups in the profile will be deleted.

Deleting security class role assignments

Use this command to delete the security classes assigned to a role. When you run this command the role will still exist but the specified security classes will no longer be assigned to it.

lsdelete ROLE [ProfileID] [role1,role2,role3]

where "ProfileID" is the profile which contains the security classes to which the roles have been assigned

and where "role1,role2,role3" stands for the names of the specific security class role assignments to be deleted. If you do not specify role names, all security class assignments in the profile will be deleted.

Command examples

The following table shows examples of lsdelete commands.

Example command Syntax
Delete a security profile named MyProfile: lsdelete PROFILE MyProfile
Delete one or more security classes within the specified profile: lsdelete SECCLASS MyProfile MyClass1,MyClass2,MyClass3
Delete all security classes within the specified profile: lsdelete SECCLASS MyProfile
Delete one or more element groups within the specified profile: lsdelete ELMGRP MyProfile MyElmGrp1,MyElmGrp2,MyElmGrp3
Delete all element groups within the specified profile: lsdelete ELMGRP MyProfile
Delete security class assignments for one or more roles within the specified profile: lsdelete ROLE MyProfile Role1,Role2,Role3
Delete security class assignments for all roles within the specified profile: lsdelete ROLE MyProfile