public function delete($media, $flush = true)
    {
        parent::delete($media, $flush);

        foreach ($this->filesystemManipulator->keys() as $key) {
            if (preg_match('#/'.$media->getReference().'$#', $key)) {
                $this->filesystemManipulator->delete($key);
            }
        }
    }