You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: remove.rb
    path of file: ./repos/gitlabhq/app/graphql/mutations/work_items/linked_items
    
    the code of the file until where you have to start completion: # frozen_string_literal: true

module Mutations
  module WorkItems
    module LinkedItems
      class Remove < Base
        graphql_name 'WorkItemRemoveLinkedItems'
        description 'Remove i
    
        def update_links(work_item, params)
          gids = params.delete(:work_items_ids)
          raise Gitlab::Graphql::Errors::ArgumentError, "workItemsIds cannot be empty" if gids.empty?

          work_item_ids = gids.filter_map { |gid| gid.model_id.to_i }
          ::WorkItems::RelatedWorkItemLinks::DestroyService
            .new(work_item, current_user, { item_ids: work_item_ids })
            .execute
        end