Destroy

Deleting a record is accomplished by sending a HTTP DELETE to the appropriate URL. The record ID must be known in order to execute this request. Use the list action to retrieve the record ID if it is not known. To delete account record number 38, an HTTP request such as the following must be sent:

curl -i -X DELETE -H 'Content-Type: application/xml'
https://rxg.dns/admin/scaffolds/accounts/destroy/38.xml?api_key=WR5...KLw

If the record was successfully deleted, a response of the following form will be returned: HTTP/1.1 200 OK Content-Type: application/xml; charset=utf-8 X-UA-Compatible: IE=Edge,chrome=1 Cache-Control: no-cache Set-Cookie: _rxg_console_session=BAh...1f3; path=/; HttpOnly X-Request-Id: 1fe3fccbf67bc8430ed74bd354cc2c95 X-Runtime: 0.056364 Date: Thu, 14 Jun 2012 01:26:05 GMT X-Rack-Cache: invalidate, pass Connection: close Server: thin 1.3.1 codename Triple Espresso Attempting to delete a nonexistent record will result in a response of HTTP/1.1 404 Not Found.


Cookies help us deliver our services. By using our services, you agree to our use of cookies.