public function deleteFile(AbstractData $data, Entity $entity, $entityName, $field)
    {
        $result = $data->getEvents()->shouldExecute($entity, 'before', 'deleteFile');
        if (!$result) {
            return false;
        }
        // For now, we are defensive and don't delete ever. As soon as soft deletion is optional, files will get deleted.
        $data->getEvents()->shouldExecute($entity, 'after', 'deleteFile');
        return true;
    }