public function remove($storageOption)
{
$this->storageOption = json_decode($storageOption);
$segment = $this->getStorageOption('segment');
$fileName = $this->getStorageOption('fileName');
if (!$segment || !$fileName) {
return false;
}
try {
$this->filesystem->remove($this->uploadPath . '/' . $segment . '/' . $fileName);
} catch (IOException $ex) {
return false;
}
return true;
}