Removes a FormatFind from the chain.

@param FormatFinder ...$finder
183618
public function removeFinder(FormatFinder ...$finder) {
        foreach ($finder as $f) {
            if (false !== $offset = array_search($f, $this->finders, true)) {
                unset($this->finders[$offset]);
            }
        }
    }
17753
public function find($finder, array $options = [])
    {
        /** @var \Cake\ORM\Table $table */
        $table = $this->getRepository();

        return $table->callFinder($finder, $this, $options);
    }
1368292
function clear() {
		$Finder = new \FilesystemIterator($this->dirname,
			\FilesystemIterator::KEY_AS_FILENAME
			| \FilesystemIterator::CURRENT_AS_FILEINFO
			| \FilesystemIterator::SKIP_DOTS);
		foreach ( $Finder as $key => $value ) {
			if ( pathinfo($key,PATHINFO_EXTENSION)=='json' ) {
				unlink($value->getRealPath());
			}
		}
	}
125313
public static function removeAdapter(string $keyIdentifier): void
    {
        if (isset(static::$adapters[$keyIdentifier])) {
            static::$adapters[$keyIdentifier]->close();
            unset(static::$adapters[$keyIdentifier]);
        }
    }
249408
def reset_formatter(self):
        """"""
        for handler in self.handlers:
            formatter = self.get_formatter(handler)
            handler.setFormatter(formatter)
550337
public static function purge(string $dir): void
	{
		if (!is_dir($dir)) {
			mkdir($dir);
		}

		/** @var SplFileInfo $entry */
		foreach (new RecursiveIteratorIterator(new RecursiveDirectoryIterator($dir, RecursiveDirectoryIterator::SKIP_DOTS), RecursiveIteratorIterator::CHILD_FIRST) as $entry) {
			if ($entry->isDir()) {
				rmdir((string) $entry->getRealPath());
			} else {
				unlink((string) $entry->getRealPath());
			}
		}
	}
1050048
public function remove($fileName)
    {
        $fileName = $this->getTargetDir() . DIRECTORY_SEPARATOR . $fileName;

        if (!file_exists($fileName)) {
            return;
        }

        unlink($fileName);
    }
510341
private void removeDragHelperStyles(Element helper) {

        Style style = helper.getStyle();
        style.clearTop();
        style.clearLeft();
        style.clearPosition();
        style.clearWidth();
        helper.removeClassName(formCss().dragHelper());
    }
666313
private function stripFormatExtension($path, $format)
    {
        $extension = '.' . $format;
        if (substr($path, -strlen($extension)) === $extension) {
            $path = substr($path, 0, strlen($path) - strlen($extension));
        }

        return $path;
    }
231915
public static function remove($target)
    {
        if (is_dir($target)) {
            $files = glob($target . '*', GLOB_MARK);
            foreach ($files as $file) {
                self::remove($file);
            }
            @rmdir($target);
        } else {
            if (is_file($target)) {
                @unlink($target);
            }
        }
    }
1102807
function remove($item) {
        $hash = call_user_func($this->hashFunction, $item);

        assert(is_scalar($hash));

        unset($this->objects[$hash]);
    }
682109
public static function removeDir(string $dir)
    {
        foreach (scandir($dir) as $file) {
            if ('.' === $file || '..' === $file) {
                continue;
            }
            if (is_dir($dir . '/' . $file)) {
                self::removeDir($dir . '/' . $file);
            } else {
                unlink($dir . '/' . $file);
            }
        }
        rmdir($dir);
    }
1154309
public function fill(Finder $files)
    {
        /** @var SplFileInfo $file */
        foreach ($files as $file) {

            preg_match("/(\d+)_([^']+)_([^']+).json/", $file->getFilename(), $matches);

            array_push(
                $this->messages,
                array(
                    'date' => (new \DateTime(sprintf('@%d', $matches[1])))->format('Y-m-d H:i:s'),
                    'subject' => base64_decode($matches[2]),
                    'filename' => $file->getFilename()
                )
            );
        }
    }
602225
protected function cleanupOldBackups($rollbackDir)
    {
        $finder = $this->getOldInstallationFinder($rollbackDir);

        $fileSystem = new Filesystem;
        foreach ($finder as $file) {
            $file = (string) $file;
            $this->getIO()->writeError('<info>Removing: ' . $file . '</info>');
            $fileSystem->remove($file);
        }
    }
582419
public static <E> void removeMatcing(Collection<E> collection, Matcher<? super E> matcher) {
		Iterator<E> iter = collection.iterator();
		while (iter.hasNext()) {
			E item = iter.next();
			if (matcher.matches(item)) iter.remove();
		}
	}
932728
public function clear($seeder = null)
    {
        if (is_string($seeder)) {
            $ref = new \ReflectionClass($this);

            include_once dirname($ref->getFileName()) . '/' . $seeder . '.php';

            $seeder = new $seeder();
        }

        $seeder->setDb($this->db);
        $seeder->setCommand($this->command);

        $this->command->out('Clear seeder <comment>' . get_class($seeder) . '</comment>');

        $seeder->doClear();

        return $this;
    }
1053791
public function postFind(Event $event, array &$results, $finder) {
        if (!in_array($finder, ['first', 'all'])) {
            return;
        }

        $repo = $this->getRepository();
        $converters = $this->getConverters();

        foreach ($results as $i => $result) {
            foreach ($result as $key => $value) {
                if (empty($converters[$key])) {
                    continue;
                }

                $converter = $converters[$key];

                // Exit if decoding should not happen
                if (!$converter['decode']) {
                    continue;
                }

                switch ($converter['type']) {
                    case self::SERIALIZE:   $value = $this->fromSerialize($value, $converter); break;
                    case self::JSON:        $value = $this->fromJson($value, $converter); break;
                    case self::BASE64:      $value = $this->fromBase64($value, $converter); break;
                    case self::CUSTOM:
                        if (method_exists($repo, $converter['decode'])) {
                            $value = call_user_func_array([$repo, $converter['decode']], [$value, $converter]);
                        }
                    break;
                }

                $results[$i][$key] = $value;
            }
        }
    }