Uninstalls the Docker image associated with a given bug.
1715
def uninstall(self, bug: Bug) -> bool:
        
        r = self.__api.post('bugs/{}/uninstall'.format(bug.name))
        raise NotImplementedError
500576
def uninstall(label):
    '''
    
    '''
    if launchd.LaunchdJob(label).exists():
        fname = launchd.plist.discover_filename(label)
        launchd.unload(fname)
        os.unlink(fname)
296301
def cleanup(self):
        """"""
        for file in glob.glob(self.basename + '*'):
            os.unlink(file)
1284465
public void remove() throws DevFailed {
        Database    database =
                (tgHost ==null)? ApiUtil.get_db_obj() : ApiUtil.get_db_obj(tgHost, tgPort);
        remove(database.get_tango_host());
    }
936361
def uninstall(cls, args):
        
        mgr = NAppsManager()
        for napp in args['<napp>']:
            mgr.set_napp(*napp)
            LOG.info('NApp %s:', mgr.napp_id)
            if mgr.is_installed():
                if mgr.is_enabled():
                    cls.disable_napp(mgr)
                LOG.info('  Uninstalling...')
                mgr.uninstall()
                LOG.info('  Uninstalled.')
            else:
                LOG.error("  NApp isn't installed.")
34655
def cleanup(self):
        """"""
        if self.image:
            try:
                self.image.close()
            except Exception:
                pass
        if (self.outtmp is not None):
            try:
                os.unlink(self.outtmp)
            except OSError as e:
                self.logger.warning("Failed to cleanup tmp output file %s"
                                    % (self.outtmp))
252655
def _cleanup(self):
        """"""
        self._expkg = None
        self._extmp = None
        self._flag_e = True
        self._ifile.close()
852990
def uninstall(args, env, console, ciprcfg):
    
    for name in args:
        package_dir = path.join(env.package_dir, name)
        if path.exists(package_dir):
            console.quiet('Removing %s...' % name)
            if path.islink(package_dir):
                os.remove(package_dir)
            else:
                shutil.rmtree(package_dir)

        ciprcfg.remove_package(name)
18186
def pip_remove(self, name=None, prefix=None, pkgs=None):
        """"""
        logger.debug(str((prefix, pkgs)))

        if isinstance(pkgs, (list, tuple)):
            pkg = ' '.join(pkgs)
        else:
            pkg = pkgs

        extra_args = ['uninstall', '--yes', pkg]

        return self._call_pip(name=name, prefix=prefix, extra_args=extra_args)
341476
def remove(self):
        '''
        
        '''
        print 'remove'
        if self.exists():
            print 'cleaning', self.venv
            run('rm -rf {}'.format(self.venv))
755155
def image_destroy(image):
    """"""
    OPENJPEG.opj_image_destroy.argtypes = [ctypes.POINTER(ImageType)]
    OPENJPEG.opj_image_destroy(image)
375434
public static function uninstall()
    {
        $tableName = self::$dbTable;
        $sql = 'DROP TABLE ' . $tableName;

        self::$wpdb->query($sql);

        delete_option('broken-links-detector-db-version');
    }
986242
def delete_deps(self, conf, images):
        """"""
        for dependency_name, _ in conf.dependency_images():
            image = images[dependency_name]
            if image.deleteable_image:
                log.info("Removing un-needed image {0}".format(image.image_name))
                conf.harpoon.docker_api.remove_image(image.image_name)
204238
def remove_container(self, container, **kwargs):
        
        self.push_log("Removing container '{0}'.".format(container))
        set_raise_on_error(kwargs)
        super(DockerFabricClient, self).remove_container(container, **kwargs)
222628
def uninstall(
    ctx,
    state,
    all_dev=False,
    all=False,
    **kwargs
):
    """"""
    from ..core import do_uninstall
    retcode = do_uninstall(
        packages=state.installstate.packages,
        editable_packages=state.installstate.editables,
        three=state.three,
        python=state.python,
        system=state.system,
        lock=not state.installstate.skip_lock,
        all_dev=all_dev,
        all=all,
        keep_outdated=state.installstate.keep_outdated,
        pypi_mirror=state.pypi_mirror,
        ctx=ctx
    )
    if retcode:
        sys.exit(retcode)
1008410
def uninstall(self):
        """"""
        if path.isdir(self.env_bin):
            self.remove_links()
        if path.isdir(self.env):
            print_pretty("<FG_BLUE>Removing env {}...<END>".format(self.env))
            shutil.rmtree(self.env)
1010221
private void invokeCleanup(DockerClient client, List<String> builtImages, @Nonnull Set<String> containers) {
        PrintStream llog = taskListener.getLogger();

        if (cleanupDangling) {
            for (String containerId : containers) {
                try {
                    client.removeImageCmd(containerId)
                            .exec();
                    llog.printf("Removed dangling layer image %s.%n", containerId);
                    LOG.debug("Removed dangling layer image '{}'", containerId);
                } catch (NotFoundException | ConflictException ex) {
                    // ignore
                } catch (Throwable ex) {
                    taskListener.error("Can't remove dangling layer image " + containerId + ".");
                    LOG.error("Can't remove dangling layer image " + containerId, ex);
                }
            }
        }

        if (!cleanup) {
            llog.println("Skipping cleanup.");
            return;
        } else {
            llog.println("Running cleanup...");
        }

        for (String image : builtImages) {
            if (isNotEmpty(image)) {
                llog.println("Removing built image " + image);
                try {
                    client.removeImageCmd(image)
                            .exec();
                } catch (NotFoundException ex) {
                    llog.println("Image doesn't exist.");
                } catch (Throwable ex) {
                    taskListener.error("Can't remove image" + ex.getMessage());
                    //ignore as it cleanup
                }
            }
        }
    }