4.4.3 Delete an Existing Entity

The following example illustrates the exchange of messages required for a client to delete an existing entity in a data service. This example shows the deletion of the Customer entity with the EntityKey value equal to "ALFKI".

HTTP Request:

 DELETE /service.svc/Customers('ALFKI')/SampleModel.Customer HTTP/1.1
 If-Match: W/"X'000000000000FA01'"
 Host: host
 DataServiceVersion: 1.0
 MaxDataServiceVersion: 1.0
  

HTTP Response:

 HTTP/1.1 204 No Content
 Date: Fri, 12 Dec 2008 17:17:11 GMT
 DataServiceVersion: 1.0