def ui_command_delete(self, lun):
        '''
        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}
        '''
        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(lun % "Deleted LUN %s.")
        # Refresh the TPG as we need to also refresh acls MappedLUNs
        self.parent.refresh()
dataset/ETHPy150Open agrover/targetcli-fb/targetcli/ui_target.py/UILUNs.ui_command_delete/swapped operands of `%`