# Delete Number from Cart

## GET or POST Request

{% hint style="info" %}
<https://v1.api19.com/dids/cart/delete>
{% endhint %}

Send us a GET or POST request with your key and the number (in the URI as key or as http password)

This deletes the number from your shopping cart.

| Argument | Required | Type |
| -------- | -------- | ---- |
| number   | yes      | int  |

{% tabs %}
{% tab title="Curl Post" %}

```php
curl -X POST https://v1.api19.com/dids/cart/delete \
 -d 'number=3038821111' \
 -d 'key=your-key'
```

{% endtab %}

{% tab title="Curl Get" %}

```
curl https://v1.api19.com/dids/cart/delete?number=3039921111&key=apitoken
```

{% endtab %}

{% tab title="JSON Response" %}

```php
{"status":"ok"}

OR

{"status":"error", "error":"number not in cart"}
```

{% endtab %}
{% endtabs %}
