code: protected function doDelete(StoreInterface $store, DeleteResource $request)
      {
          $record = $request->getRecord();
  
          if ($response = $this->invoke('deleting', $record, $request)) {
              return $response;
          }
  
          $result = $store->deleteRecord($record, $request->getParameters());
  
          return $this->invoke('deleted', $record, $request) ?: $result;
      }
docs: Delete a resource.
  
  @param StoreInterface $store
  @param DeleteResource $request
  @return mixed|null
  an HTTP response, an asynchronous process, content to return, or null.