Delete Resource

The DeleteResource method of the Resource API removes a single resource object from the system. This operation is a simple http DELETE on the base URL of the API appended with the ID of the resource to delete (which can easily be found using the ListResource method. Use the Accept header to determine the mediatype the API will return. Acceptable mediatypes are as described in the API Overview.

Sample Request

DELETE /resource/746424366 HTTP/1.1 Authorization: Atmosphere realm=http://atmosphere,atmosphere_app_id=,atmosphere_signature_method=NONE; Accept: application/json User-Agent: SOA Software HTTP Client Transport Host: demo2-broker.atmos.phe.re

For more details on how to specify the authentication header, and on API security in general, please see the API Overview document.

Sample Responses

JSON Response

HTTP/1.1 200 OK Date: Wed, 18 Apr 2012 21:42:31 GMT Content-Type: application/json Content-Encoding: gzip Transfer-Encoding: chunked { "status" : true, "description" : "Resource: 746424366 successfully deleted", "timestamp" : "Wed Apr 18 21:42:31 UTC 2012" }

XML Response

HTTP/1.1 200 OK Date: Thu, 19 Apr 2012 01:36:10 GMT Content-Type: application/xml Content-Encoding: gzip Transfer-Encoding: chunked <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Status xmlns="http://demo.soa.com/resource/1.0"> <status>true</status> <description>Resource: 746424366 successfully deleted</description> <timestamp>Thu Apr 19 01:36:10 UTC 2012</timestamp> </Status>

back to top