# Bulk delete virtual coupons

### DELET&#x45;**:** /wp-json/coupons/v1/bulk/virtualcoupons <a href="#post-wp-json-loyalty-program-v-1-customers-points-user_id" id="post-wp-json-loyalty-program-v-1-customers-points-user_id"></a>

{% tabs %}
{% tab title="Request" %}
**Requirements:**

* Logged-in user
* user role with `manage_woocommerce` user capability

| Method | Endpoint                                |
| ------ | --------------------------------------- |
| DELETE | /wp-json/coupons/v1/bulk/virtualcoupons |

| Query Parameters | Required | Type       | Description                 |
| ---------------- | -------- | ---------- | --------------------------- |
| coupon\_id       | yes      | integer    | Coupon ID                   |
| ids              | yes      | integer\[] | Array of virtual coupon IDs |
| {% endtab %}     |          |            |                             |

{% tab title="Request Example" %}
Bulk delete virtual coupons

```
DELETE: http://example.com/wp-json/coupons/v1/bulk/virtualcoupons/‌

JSON Body:
{
    "coupon_id": 207,
    "ids": [64,65,67,57,56,53,50,49,48,47]
}
```

{% endtab %}

{% tab title="Response Example" %}
St**atus: 200 OK**

Bulk delete virtual coupons

```
{
    "message": "10 virtual coupon codes have been deleted.",
    "count":10,
    "total":144
}
```

**Status: 403 Forbidden**

```
{
    "code": "rest_forbidden_context",
    "message": "Sorry, you are not allowed access to this endpoint.",
    "data": {
        "status": 401
    }
}
```

{% endtab %}
{% endtabs %}
