Removes an existing display profile object from the display profile.
psadmin remove-dp --name name [--parent parent] --type type --adminuser uid --passwordfile password-filename --dn dn --portalid portal-ID [--global] [--dry-run]
psadmin remove-dp -n name [-P parent] -t type -u uid -f password-filename -d dn -p portal-ID [-g] [-r]
The following options are required:
Specifies the administrator's distinguished name.
Distinguished name of the target node. This is mutually exclusive to -g option.
Name of the target display object. This should be specified as none if type is root or if the entire display profile needs to be removed.
Specifies the administrator's password in the password file.
Specifies the portal ID; if this is not supplied, the default is used.
Type of the display object are root, channel, provider, property, available, or selected.
The following options are optional:
Attempt to execute command without writing out to LDAP. Default is false.
Global display profile. Default is false. This is mutually exclusive to -d option.
Name of the parent display object. If not specified , the object gets removed from the root.
./psadmin remove-dp -u amadmin -f ps_password -p myPortal1 -d "cn=hr_role,o=Developersample,dc=country,dc=sun,dc=com" -n "JSPTabContainer/bookmark3" -t channel
In the above example, psadmin remove-dp removes the channel bookmark3 from the container JSPTabContainer.
If you need to remove the channels that are added to a user or role, run the following command:
./psadmin remove-dp -u amadmin -f ps_password -p myPortal1 -d "cn=hr_role,o=Developersample,dc=country,dc=sun,dc=com"
This command removes all channels that are added to the role. It retains only the channels that are present in the DeveloperSample.