delete()
Purpose
Moves the specified record to the Recycle Bin. For users and Customers this API deletes records permanently.
This method only works with native Platform objects. To delete an external object record, see deleteRecord().
Syntax
delete(string sessionId, long id);
Parameters
sessionId
A string containing the session ID obtained at log in.
id
A long value containing the record ID.
Output
None
Permissions Required
Delete permission for the requested object type.
Example
long id = 123456; binding.delete(sessionId, id);