delete()
Use the delete() call to delete one or more objects of the same type.
You can specify different types in different delete calls, but each delete call must only apply to one type of object.
Usage
You can call delete() with a string type of zObject and a list of IDs of that type. It returns an array of DeleteResult, indicating the success or failure of deleting each object.
The following information applies to this call:
- You need to first determine the IDs for the objects you want to delete.
- You cannot pass in any null IDs.
- All objects in a specific delete() call must be of the same type.
Objects per call limits
50 objects are supported in a single call.
Syntax and arguments
DeleteResult[] = delete(type, ID[]);
Response
DeleteResult
Faults
Possible faults are listed on the separate Faults page.
- InvalidTypeFault
- InvalidValueFault
- UnexpectedErrorFault