(self, imagerepo, tag, force=False)
return False
Delete an image repository and its layers
Delete an image repository and its layers
Delete an image repository and its layers
def del_imagerepo(self, imagerepo, tag, force=False):
        """Delete an image repository and its layers"""
        tag_dir = self.cd_imagerepo(imagerepo, tag)
        if (tag_dir and
                self._remove_layers(tag_dir, force) and
                FileUtil(tag_dir).remove(recursive=True)):
            self.cur_repodir = ""
            self.cur_tagdir = ""
            while imagerepo:
                FileUtil(self.reposdir + '/' + imagerepo).rmdir()
                imagerepo = "/".join(imagerepo.split("/")[:-1])
            return True
        return False
def del_imagerepo ( self , imagerepo , tag , force = False ) : tag_dir = self . cd_imagerepo ( imagerepo , tag ) if ( tag_dir and self . _remove_layers ( tag_dir , force ) and FileUtil ( tag_dir ) . remove ( recursive = True ) ) : self . cur_repodir = "" self . cur_tagdir = "" while imagerepo : FileUtil ( self . reposdir + '/' + imagerepo ) . rmdir ( ) imagerepo = "/" . join ( imagerepo . split ( "/" ) [ : - 1 ] ) return True return False