3.3.3 - Delete Group Information

Action Option -DG (-DeleteGroup) :

removes one or more group records from GDEXDB for the specified dataset.

dsarch [-(DS|Dataset)] dNNNNNN [-](DG|DeleteGroup) [Mode Options]
-(GI|GroupIndex) GroupIndices
[-(LN|LoginName) LoginAccountName]
[-(DB|Debug) DebugModeInfo]

Available mode options:

-(MD|MyDataset)

allows any specialist to set GDEXDB information, regardless of dataset ownership

-(NT|NoTrim)

skips trimming of spaces and comments from input values, speeding up input file processing

-(RT|ResetTGroup)

resets the top group index for file records in the affected group

-(WN|WithFileNumber)

re-evaluates and resets file counts for the affected groups

Specify groups by index via -GI and the dataset via -DS. Deletion is blocked if a group still contains subgroups or data files. To delete a non-empty group, first retrieve its files with -GS (-GetSavedFile) or -GW (-GetWebFile), then either move them to another group via -CG (-ChangeGroup), reset their group index to 0, or remove them with -DL (-Delete). Once empty, the group can be deleted.

EXAMPLE 8. To delete group indices 2 and 3 of d744004:

dsarch d744004 DG -GI 2 3