Delete a Single Object
This function deletes a single existing object of the given type and with the given ID.
Relative URL
HTTP Request Method
/api/v4/app-instance-id/objects/model/object-id.json
DELETE
  • Replace model with the type of object that you wish to delete (as defined in your app's Data Model)
  • Replace object-id with the ID of the specific object.

Parameters

This function does not take any parameters.
For deleting more than one object in a request, refer to the Batch Operations section.

Response

This function does not provide a response. The response body will simply be empty (and a 200 response code indicates success as usual).

Example

http
DELETE https://run-testing-us.journeyapps.com/api/v4/533bda53027894f69b001055/objects/tasks/eacb4836-f1b9-11e1-9750-001cc01904e3.json
curl
curl "https://run-testing-us.journeyapps.com/api/v4/533bda53027894f69b001055/objects/tasks/eacb4836-f1b9-11e1-9750-001cc01904e3.json" \
-u "533bda53027894f69b001055:7Ajj5htRY1uzw7b4w23V" \
-X DELETE
ruby
require 'rest-client'
journey = RestClient::Resource.new "https://run-testing-us.journeyapps.com/api/v4", "533bda53027894f69b001055", "7Ajj5htRY1uzw7b4w23V"
journey["533bda53027894f69b001055/objects/tasks/eacb4836-f1b9-11e1-9750-001cc01904e3.json"].delete
Copy link
On this page
Parameters
Response
Example