rtslib/target.py
def delete(self):
        '''
        If the underlying configFS object does not exist, this method does
        nothing. If the underlying configFS object exists, this method attempts
        to delete it along with all MappedLUN objects referencing that LUN.
        '''
        self._check_self()

        for mlun in self.mapped_luns:
            mlun.delete()

        try:
            link = self.alias
        except RTSLibBrokenLink:
            pass
        else:
            if os.path.islink("%s/%s" % (self.path, link)):
                os.unlink("%s/%s" % (self.path, link))

        super(LUN, self).delete()

        If the underlying configFS object does not exist, this method does
        nothing. If the underlying configFS object exists, this method attempts
        to delete it along with all MappedLUN objects referencing that LUN.
        
If the underlying configFS object does not exist, this method does
nothing. If the underlying configFS object exists, this method attempts
to delete it along with all MappedLUN objects referencing that LUN.
If the underlying configFS object does not exist this method does nothing . If the underlying configFS object exists this method attempts to delete it along with all MappedLUN objects referencing that LUN .
def delete(self):
        self._check_self()
        for mlun in self.mapped_luns:
            mlun.delete()
        try:
            link = self.alias
        except RTSLibBrokenLink:
            pass
        else:
            if os.path.islink("%s/%s" % (self.path, link)):
                os.unlink("%s/%s" % (self.path, link))
        super(LUN, self).delete()
def delete ( self ) : self . _check_self ( ) for mlun in self . mapped_luns : mlun . delete ( ) try : link = self . alias except RTSLibBrokenLink : pass else : if os . path . islink ( "%s/%s" % ( self . path , link ) ) : os . unlink ( "%s/%s" % ( self . path , link ) ) super ( LUN , self ) . delete ( )
If the underlying configFS object does not exist, this method does
nothing.
If the underlying configFS object does not exist this method does nothing .
'''
        If the underlying configFS object does not exist, this method does
        nothing. If the underlying configFS object exists, this method attempts
        to delete it along with all MappedLUN objects referencing that LUN.
        '''
self