Deletes 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.
DeleteResult[] = delete(type, ID[]);
The arguments are as shown in the following table. For information on the field types, see Field Types.
Argument | Description |
---|---|
type | The type of object that you are deleting. |
ids[] | An array of one or more IDs for the objects you wish to delete. |
You can call delete with a string type of zObject and an array 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:
Delete delete =new Delete(); delete.setType("Account"); delete.setIds(new ID[] { "402881491bd3cc34011bd3eb0c300092" }); ServiceStub.DeleteResponse res = stub.delete(delete, header); ServiceStub.DeleteResult[] sr = res.getResult();
Copyright © 2008-2009 Zuora, Inc.