# Delete a Single Object

This function deletes a single existing object of the given type and with the given ID.

<table><thead><tr><th width="535">Relative URL</th><th>HTTP Request Method</th></tr></thead><tbody><tr><td><code>/api/v4/</code><em><code>backend-deployment-id</code></em><code>/objects/</code><em><code>model</code></em><code>/</code><em><code>object-id</code></em><code>.json</code></td><td>DELETE</td></tr></tbody></table>

{% hint style="info" %}

* 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.
  {% endhint %}

### Parameters

This function does not take any parameters.

{% hint style="info" %}
For deleting more than one object in a request, refer to the [Batch Operations](https://docs.journeyapps.com/reference/backend-api/api-reference/batch-operations-v4-api) section.
{% endhint %}

### 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

{% hint style="info" %}
**BASE-URL**

The below examples contain a `BASE-URL` placeholder. Please refer to the [HTTP Endpoints](https://docs.journeyapps.com/reference/introduction#http-endpoints) section to get the base URL relevant to your deployment.
{% endhint %}

{% tabs %}
{% tab title="HTTP" %}

```http
DELETE BASE-URL/api/v4/533bda53027894f69b001055/objects/tasks/eacb4836-f1b9-11e1-9750-001cc01904e3.json
```

{% endtab %}

{% tab title="curl" %}

```shell
curl "BASE-URL/api/v4/533bda53027894f69b001055/objects/tasks/eacb4836-f1b9-11e1-9750-001cc01904e3.json" \
    -u "533bda53027894f69b001055:7Ajj5htRY1uzw7b4w23V" \
    -X DELETE
```

{% endtab %}

{% tab title="ruby" %}

```ruby
require 'rest-client'
journey = RestClient::Resource.new "BASE-URL/api/v4", "533bda53027894f69b001055", "7Ajj5htRY1uzw7b4w23V"
journey["533bda53027894f69b001055/objects/tasks/eacb4836-f1b9-11e1-9750-001cc01904e3.json"].delete
```

{% endtab %}
{% endtabs %}
