def ui_command_delete(self, lun):
    '\n        Deletes the supplied LUN from the Target Portal Group. The I{lun} must\n        be a positive number matching an existing LUN.\n\n        Alternatively, the syntax I{lunX} where I{X} is a positive number is\n        also accepted.\n\n        SEE ALSO\n        ========\n        B{create}\n        '
    self.assert_root()
    if lun.lower().startswith('lun'):
        lun = lun[3:]
    try:
        lun_object = LUN(self.tpg, lun)
    except:
        raise RTSLibError('Invalid LUN')
    lun_object.delete()
    self.shell.log.info(('Deleted LUN %s.' % lun))
    self.parent.refresh()
Deletes the supplied LUN from the Target Portal Group. The I{lun} must
be a positive number matching an existing LUN.

Alternatively, the syntax I{lunX} where I{X} is a positive number is
also accepted.

SEE ALSO
========
B{create}
def ui_command_delete(self, lun):
    '\n        Deletes the supplied LUN from the Target Portal Group. The I{lun} must\n        be a positive number matching an existing LUN.\n\n        Alternatively, the syntax I{lunX} where I{X} is a positive number is\n        also accepted.\n\n        SEE ALSO\n        ========\n        B{create}\n        '
    self.assert_root()
    if lun.lower().startswith('lun'):
        lun = lun[3:]
    try:
        lun_object = LUN(self.tpg, lun)
    except:
        raise RTSLibError('Invalid LUN')
    lun_object.delete()
    self.shell.log.info(('Deleted LUN %s.' % lun))
    self.parent.refresh()