Method: Gitlab::Client::SystemHooks#delete_hook

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

#delete_hook(id) ⇒ Gitlab::ObjectifiedHash Also known as: delete_system_hook

Deletes a new system hook.

Examples:

Gitlab.delete_hook(3)
Gitlab.delete_system_hook(12)

Parameters:

  • id (Integer)

    The ID of a system hook.

Returns:

[View source]

59
60
61
# File 'lib/gitlab/client/system_hooks.rb', line 59

def delete_hook(id)
  delete("/hooks/#{id}")
end