code: protected function i18nDeleteQuery($withGlobalScopes = true)
      {
          $subQuery = $withGlobalScopes ? $this->toBase() : $this->getQuery();
          $subQuery->select($this->model->getQualifiedKeyName());
  
          return $this->i18nQuery()->whereIn(
              $this->model->getForeignKey(), $subQuery->pluck($this->model->getKeyName())
          );
      }
docs: Get the delete query instance for translation table.
  
  @param bool $withGlobalScopes
  @return \Illuminate\Database\Query\Builder