skip to main content
OData Method Reference : HTTP DELETE or POST and DELETE
 

Try DataDirect Cloud Now

HTTP DELETE or POST and DELETE

Purpose

HTTP DELETE deletes a specified entity. Alternatively, you can use HTTP POST and specify DELETE as the value of the X-HTTP-Method header. The body of the request must be empty and the URL should not contain parameters.

URL

https://service.datadirectcloud.com/api/odata/<entity collection><entity instance>

Method

DELETE | POST with a X-HTTP-Method header value of DELETE.

Response Status

If the entity is successfully deleted, the OData service returns a status of 204 No Content.

Authentication

Basic Authentication using Login ID and Password.

Authorization

Any active DataDirect Cloud user. The authenticated user must use same credentials used to create the Data Source definition.

Sample Requests

DELETE https://service.datadirectcloud.com/api/odata/Customers(123)

POST https://service.datadirectcloud.com/api/odata/Customers(123)
X-HTTP-Method: DELETE