November 23, 2017


# Delete quote.
# This script deletes a presented quote in the SoftLayer Customer Portal's
# ( using a single
# API call to SoftLayer_Billing_Order_Quote::deleteQuote method passing the ID of the quote to be deleted.
# Important manual pages:
# @License:
# @Author: SoftLayer Technologies, Inc. <>

require 'rubygems'
require 'softlayer_api'

# We can set the default client to be our client and that way
# we can avoid supplying it later
SL_API_USERNAME = 'set me'
SL_API_KEY = 'set me'
client =
  username: SL_API_USERNAME,
  api_key: SL_API_KEY)

# Set the id of quote you want to delete, you may use SoftLayer::getQuotes method
# to get a list of quotes available in the account
quote_id = 123_456
  result = client['SoftLayer_Billing_Order_Quote'].object_with_id(quote_id).deleteQuote
rescue => error_reason
  puts error_reason


If this article contains any error, or leaves any of your questions unanswered, please help us out by opening up a github issue.
Open an issue