Method: Gitlab::Client::BuildVariables#remove_group_variable

Defined in:
lib/gitlab/client/build_variables.rb

#remove_group_variable(group, key) ⇒ Gitlab::ObjectifiedHash

Remove a group’s build variable.

Examples:

Gitlab.remove_group_variable(5, "VARIABLE_1")

Parameters:

  • group (Integer, String)

    The ID or name of a group.

  • key (String)

    The key of a variable.

Returns:



131
132
133
# File 'lib/gitlab/client/build_variables.rb', line 131

def remove_group_variable(group, key)
  delete("/groups/#{url_encode group}/variables/#{key}")
end