You are here

public function Salesforce::objectDelete in Salesforce Suite 7.3

Delete a Salesforce object.

Parameters

string $name: Object type name, E.g., Contact, Account.

string $id: Salesforce id of the object.

File

includes/salesforce.inc, line 721
Objects, properties, and methods to communicate with the Salesforce REST API

Class

Salesforce
Ability to authorize and communicate with the Salesforce REST API.

Code

public function objectDelete($name, $id) {
  $this
    ->apiCall("sobjects/{$name}/{$id}", array(), 'DELETE');
}