code: protected function dataForDelete($record): array
      {
          $schema = $this->container->getSchema($record);
  
          return ResourceObject::create([
              'type' => $schema->getResourceType(),
              'id' => $schema->getId($record),
              'attributes' => $schema->getAttributes($record),
              'relationships' => collect($this->existingRelationships($record))->all(),
          ])->all();
      }
docs: Get validation data for deleting a domain record.
  
  @param $record
  @return array