Service/PairStorage.php
public function remove($key)
    {
        $pair = $this->repository->find($key);
        if ($pair !== null) {
            $this->repository->remove($pair->getId());
            $this->manager->flush();
            $this->manager->refresh();
        }
    }
public function remove($key)
    {
        $pair = $this->repository->find($key);
        if ($pair !== null) {
            $this->repository->remove($pair->getId());
            $this->manager->flush();
            $this->manager->refresh();
        }
    }
Removes pair by key.

@param string $key