# Delete Partner Off Day

## Delete partner off days

<mark style="color:green;">`POST`</mark> `{baseUrl}/partners/offDays/delete`

Delete partner off day(s)

#### Request Body

| Name                                        | Type           | Description |
| ------------------------------------------- | -------------- | ----------- |
| partnerId<mark style="color:red;">\*</mark> | String         |             |
| dates<mark style="color:red;">\*</mark>     | Array\<string> |             |

{% tabs %}
{% tab title="200: OK Off day deleted successfully" %}

{% endtab %}

{% tab title="400: Bad Request Could not remove off day: Partner not found" %}

{% endtab %}
{% endtabs %}

### Sample Success Data

```json
//Sample Request Body
{
    "partnerId": "{{partnerId}}",
    "date":["2024-05-20"]
}
```

```json
// Sample Response Body - 200 OK
{
    "status": true,
    "message": "Off day deleted successfully",
    "data": []
}
```

### Sample Error Data

```json
// Sample Request Body
{
    "partnerId": "invalid id",
    "date":["2024-05-20"]
}

```

```json
// Sample Response Body - 400 Bad Request
{
    "status": false,
    "message": "Could not delete off day: Partner not found"
}
```
