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.
The following information applies to this call:
50 objects are supported in a single call.
DeleteResult = delete(type, ID);
|type||The type of object that you are deleting.|
|ids||A list of one or more IDs for the objects you want to delete.|
The following sections provide examples of using the delete() call.
Delete delete = new Delete();delete.setType("Account");ID id = new ID();id.setID("402881491bd3cc34011bd3eb0c300092");delete.setIds(id);ServiceStub.DeleteResponse res = stub.delete(delete, header);ServiceStub.DeleteResult sr = res.getResult();
<ns1:delete> <ns1:type>Usage</ns1:type> <ns1:ids>4028e699235ea4de0123777131fd5d68</ns1:ids></ns1:delete>
<ns1:delete> <ns1:type>Usage</ns1:type> <ns1:ids>4028e699235ea4de0123777131fd5d68</ns1:ids> <ns1:ids>4028e699235ea4de0123777132125d6b</ns1:ids></ns1:delete>