November 23, 2017
# Delete Resource Record.
# This script deletes a domain's resource record.
# Important manual pages:
# @see
# @license <>
# @author SoftLayer Technologies, Inc. <>
use lib '/path/to/SoftLayer/';
use Data::Dumper;
use SoftLayer::API::SOAP;
use strict;

# Set your SoftLayer API username and key.
my $api_username = 'set me';
my $api_key = 'set me';

# Set the id of item to delete
# To get resource record ids, please use: SoftLayer_Dns_Domain::getResourceRecords
my $record_id = 59845680;

# Service to use to create a new record.
my $resource_record_service ='SoftLayer_Dns_Domain_ResourceRecord';

# Create a Resource record client to the API service.
my $resource_record_client = SoftLayer::API::SOAP->new($resource_record_service, $record_id, $api_username, $api_key);

my $result = $resource_record_client->deleteObject();
if ($result->fault) {
	die 'There is an error when trying to delete the resource record...' . $result->faultstring;
} else {
	print Dumper($result);


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