Detach Label: detach-label

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

Syntax

The syntax for this command is:

stcmd{Ex} detach-label [-p "projectSpecifier" [-pattern "pattern"][-epwdfile "filePath"] [-cmp] 
[-csf] [-encrypt encryptionType]] -lbl "labelName" [-all | -type typeName | 
–ifp “inputFilePath” ] [–q | -pf “filter name”] [ -ofp “output file path”]

Note: -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.

Note: If a folder path is specified in -p, in conjunction with -all or -type, then only the items of the appropriate types in that folder path will be detached. Items not in that folder path will be retained

Parameters

For information about the command parameters, refer to Operation Parameters.

Example

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 attached-label = 'x'
stcmd detach-label -p… -ifp “c:/temp/fields.txt” lbl ‘x’

Using the -pattern parameter:

 co -p "Administrator:Administrator@localhost:49201/project/view" -pattern "d/M/yy h:m:s" -is -o

Produces:

 $Date: 28/8/15 8:34:38$