module Nylas::ApiOperations::Delete

Performs a DELETE call to the Nylas API.

Protected Instance Methods

delete(path:, query_params: {}, headers: {}) click to toggle source

Performs a DELETE call to the Nylas API.

@param path [String] Destination path for the call. @param query_params [Hash, {}] Query params to pass to the call. @param headers [Hash, {}] Additional HTTP headers to include in the payload. @return Nylas data object and API Request ID.

# File lib/nylas/handler/api_operations.rb, line 147
def delete(path:, query_params: {}, headers: {})
  response = execute(
    method: :delete,
    path: path,
    query: query_params,
    headers: headers,
    payload: nil,
    api_key: api_key,
    timeout: timeout
  )

  [response[:data], response[:request_id]]
end