def ui_command_delete(self, tag):
    '\n        Deletes the Target Portal Group with TPGT I{tag} from the target. The\n        I{tag} must be a positive integer matching an existing TPGT.\n\n        SEE ALSO\n        ========\n        B{create}\n        '
    self.assert_root()
    if tag.startswith('tpg'):
        tag = tag[3:]
    tpg = TPG(self.rtsnode, int(tag), mode='lookup')
    tpg.delete()
    self.shell.log.info(('Deleted TPGT %s.' % tag))
    self.refresh()
Deletes the Target Portal Group with TPGT I{tag} from the target. The
I{tag} must be a positive integer matching an existing TPGT.

SEE ALSO
========
B{create}
def ui_command_delete(self, tag):
    '\n        Deletes the Target Portal Group with TPGT I{tag} from the target. The\n        I{tag} must be a positive integer matching an existing TPGT.\n\n        SEE ALSO\n        ========\n        B{create}\n        '
    self.assert_root()
    if tag.startswith('tpg'):
        tag = tag[3:]
    tpg = TPG(self.rtsnode, int(tag), mode='lookup')
    tpg.delete()
    self.shell.log.info(('Deleted TPGT %s.' % tag))
    self.refresh()