public function delete(UploadedFile $file)
{
$storage = $this->getStorage($file);
try {
$storage->delete($file->getFullFilename());
} catch (FileNotFound $e) {
$this->container->get('logger')->alert(sprintf('Unable to delete file %s', $file->getFullFilename()), [$e, $file]);
}
}