code: public function removeResourceFile(ResourceInterface $resource)
      {
          $fs = $this->getFilesystem($resource);
          try {
              $fs->delete($resource->getPath());
          } catch (FileNotFoundException $e) {
              $this->logger->warning(
                  "Tried to remove missing file {$resource->getPath()} ({$resource->getOriginalFileName()})"
              );
          }
      }
docs: {@inheritdoc}