Uploader/Uploader.php
public function remove(UploadableInterface $uploadable)
    {
        if (0 < strlen($path = $uploadable->getOldPath())) {
            $fs = $this->getFilesystem();

            if (!$fs->has($path)) {
                throw new UploadException(sprintf('File "%s" not found.', $path));
            }
            if (!$fs->delete($path)) {
                throw new UploadException(sprintf('Failed to delete file "%s".', $path));
            }

            $this->cleanUp($path);
            $uploadable->setOldPath(null);
        }
    }
public function remove(UploadableInterface $uploadable)
    {
        if (0 < strlen($path = $uploadable->getOldPath())) {
            $fs = $this->getFilesystem();

            if (!$fs->has($path)) {
                throw new UploadException(sprintf('File "%s" not found.', $path));
            }
            if (!$fs->delete($path)) {
                throw new UploadException(sprintf('Failed to delete file "%s".', $path));
            }

            $this->cleanUp($path);
            $uploadable->setOldPath(null);
        }
    }
{@inheritdoc}