Method: Gitlab::Client::Users#delete_user_custom_attribute

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

#delete_user_custom_attribute(key, user_id) ⇒ Boolean

Delete custom_attribute Will delete a custom_attribute

Examples:

Gitlab.delete_user_custom_attribute('somekey', 2)

Parameters:

  • key (String)

    The custom_attribute key to delete

  • user_id (Integer)

    The ID of a user.

Returns:

  • (Boolean)
[View source]

329
330
331
# File 'lib/gitlab/client/users.rb', line 329

def delete_user_custom_attribute(key, user_id)
  delete("/users/#{user_id}/custom_attributes/#{key}")
end