def delete_bare_metal_tags(id, tags = [])
raise ArgumentError, "Tags argument for #{self.class.name}##{__method__} must be Array." unless tags.is_a?(Array)
response = Excon::Response.new
response.status = self.get_bare_metal_server(id).status
if response.status != 404
@tags = @tags.reject do |tag|
tag['resourceTableId'] == id and tags.include?(tag['tag']['name'])
end
response.body = true
else
response.body = {
"error"=>"Unable to find object with id of '#{id}'.",
"code"=>"SoftLayer_Exception_ObjectNotFound"
}
end
response
end