sregistry/database/sqlite.py
def rm(self, image_name, delete=False):
    '''Remove an image from the database, akin to untagging the image. This
    does not delete the file from the cache, unless delete is set to True
    (as called by rmi).
    '''
    container = self.get(image_name)
    if container is not None:
        name = container.uri or container.get_uri()
        image = container.image
        self.session.delete(container)
        self.session.commit()
        if image is not None:
            if os.path.exists(image) and delete is True:
                os.remove(container.image)
            return image
        bot.info("[rm] %s" % name)
def rm(self, image_name, delete=False):
    '''Remove an image from the database, akin to untagging the image. This
    does not delete the file from the cache, unless delete is set to True
    (as called by rmi).
    '''
    container = self.get(image_name)
    if container is not None:
        name = container.uri or container.get_uri()
        image = container.image
        self.session.delete(container)
        self.session.commit()
        if image is not None:
            if os.path.exists(image) and delete is True:
                os.remove(container.image)
            return image
        bot.info("[rm] %s" % name)
def rm ( self , image_name , delete = False ) : container = self . get ( image_name ) if container is not None : name = container . uri or container . get_uri ( ) image = container . image self . session . delete ( container ) self . session . commit ( ) if image is not None : if os . path . exists ( image ) and delete is True : os . remove ( container . image ) return image bot . info ( "[rm] %s" % name )
Remove an image from the database, akin to untagging the image. This
    does not delete the file from the cache, unless delete is set to True
    (as called by rmi).
Remove an image from the database akin to untagging the image . This does not delete the file from the cache unless delete is set to True ( as called by rmi ) .