Having problems with your account or logging in?
A lot of changes are happening in the community right now. Some may affect you. READ MORE HERE

Detach labels from artifact instances

Detach labels from artifact instances

Use the detach-label command to remove labels from the specified IDs.

The syntax for this command is:
detach-label [-p "projectSpecifier" [-pwdfile "filePath"] [-cmp]
[-csf] [-encrypt encryptionType]] -lbl "labelName" [-all | -type typeName |
-ifp "inputFilePath" ] [-q | -pf "filter name"] [ -ofp "output file path"]

Parameter Description
-ifp Specifies a fully qualified path to a file which contains a list of item IDs. The items associated
with item IDs are associated to the label. If -ifp is specified, -filter "fileStatus"
cannot be specified.

-lbl Specifies the label name on which to perform the action. This option can be used more than
once. The application action is for all of the labels on the specified file or revisions.

-all Specifies that the label will be detached from all items it is attached to.

-type Specifies that the label will be detached from all items of the specific type that it is attached
Important: -all, -type, -ifp are mutually exclusive. You must specify just one of them. An
exception will be thrown if there are none or more than one specified.

The item IDs are expected to be attached to the label. The detach-labels command removes them from
the label.
For example, the file could be the output of a select command, such as:
stcmd select viewmemberid from file 'c:/temp/fileids.txt' where attachedlabel
= 'x'
stcmd detach-label -p... -ifp "c:/temp/fields.txt" lbl 'x'


Some content on Community Tips & Information pages is not officially supported by Micro Focus. Please refer to our Terms of Use for more detail.
Version history
Revision #:
1 of 1
Last update:
‎2016-11-07 16:59
Updated by:
The opinions expressed above are the personal opinions of the authors, not of Micro Focus. By using this site, you accept the Terms of Use and Rules of Participation. Certain versions of content ("Material") accessible here may contain branding from Hewlett-Packard Company (now HP Inc.) and Hewlett Packard Enterprise Company. As of September 1, 2017, the Material is now offered by Micro Focus, a separately owned and operated company. Any reference to the HP and Hewlett Packard Enterprise/HPE marks is historical in nature, and the HP and Hewlett Packard Enterprise/HPE marks are the property of their respective owners.