Method: NexusAPI::NexusConnection#delete

Defined in:
lib/nexus_api/nexus_connection.rb

#delete(endpoint:, headers: {'Content-Type' => 'application/json'}, api_version: 'v1') ⇒ Object



50
51
52
53
54
55
56
57
58
# File 'lib/nexus_api/nexus_connection.rb', line 50

def delete(endpoint:, headers: {'Content-Type' => 'application/json'}, api_version: 'v1')
  response = send_request(
    :delete,
    endpoint,
    headers: headers,
    api_version: api_version
  )
  valid?(response)
end