The WebSphere eXtreme Scale REST data service can delete entities, property values and links.
The DeleteEntity Request can delete an eXtreme Scale entity from the REST data service.
If any relation to the to-be-deleted entity has cascade-delete set, then the eXtreme Scale Rest data service will delete the related entity or entities.
For more details on the DeleteEntity request, refer to http://msdn.microsoft.com/en-us/library/dd541417(PROT.10).aspx
The following DeleteEntity request deletes the customer with key 'IBM'.
The DeleteValue Request sets an eXtreme Scale entity property to null.
Any property of an eXtreme Scale entity can be set to null with a DeleteValue request. To set a property to null, ensure all of the following:
However, such a delete request could be rejected by the database backend if, for example, the property is not nullable in the database. In this case, the REST data service returns a 500 (Internal Server Error) response.
For more details on the DeleteValue request, refer to: http://msdn.microsoft.com/en-us/library/dd541270(PROT.10).aspx
Here is a DeleteValue request example. In this example, we set the contact name of Customer('IBM') to null.
The DeleteLink request can removes an association between two eXtreme Scale entity instances. The association can be a to-one relation or a to-many relation.
However, such a delete request could be rejected by the database backend if, for example, the foreign key constraint is set. In this case, the REST data service returns a 500 (Internal Server Error) response.
For more details on the DeleteLink request, refer to: http://msdn.microsoft.com/en-us/library/dd541543(PROT.10).aspx
The following DeleteLink request removes the association between Order(101) and its associated Customer.