> ## Documentation Index
> Fetch the complete documentation index at: https://docs.commenda.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Bulk delete jurisdiction exemptions

> Delete multiple jurisdiction exemptions at once

Deletes multiple jurisdiction exemptions from an exemption certificate in a single request.

<ParamField path="exemption_certificate_id" type="string" required>
  The unique identifier of the exemption certificate.
</ParamField>

<ParamField body="jurisdictions" type="array" required>
  Array of jurisdiction identifiers to delete. Each jurisdiction must be in the format `{country}_{state}` (e.g., "US\_CA" for California).
</ParamField>

<ResponseExample>
  ```json 200 theme={null}
  {
    "message": "Successfully deleted exemptions."
  }
  ```

  ```json 400 theme={null}
  {
    "error": {
      "code": "INVALID_REQUEST_BODY",
      "message": "Invalid jurisdiction format. Expected format: {country}_{state}"
    }
  }
  ```

  ```json 404 theme={null}
  {
    "error": {
      "code": "EXEMPTION_CERTIFICATE_NOT_FOUND",
      "message": "Exemption certificate not found"
    }
  }
  ```
</ResponseExample>

<RequestExample>
  ```bash cURL theme={null}
  curl --request DELETE \
    --url 'https://transaction-tax.api.in.commenda.io/api/v1/exemption-certificates/{exemption_certificate_id}/jurisdictions/bulk_delete' \
    --header 'Authorization: Bearer <token>' \
    --header 'Content-Type: application/json' \
    --data '{
      "jurisdictions": ["US_CA", "US_NY", "US_TX"]
    }'
  ```

  ```javascript JavaScript theme={null}
  const response = await fetch('https://transaction-tax.api.in.commenda.io/api/v1/exemption-certificates/{exemption_certificate_id}/jurisdictions/bulk_delete', {
    method: 'DELETE',
    headers: {
      'Authorization': 'Bearer <token>',
      'Content-Type': 'application/json'
    },
    body: JSON.stringify({
      jurisdictions: ['US_CA', 'US_NY', 'US_TX']
    })
  });

  const data = await response.json();
  ```

  ```python Python theme={null}
  import requests

  response = requests.delete(
    'https://transaction-tax.api.in.commenda.io/api/v1/exemption-certificates/{exemption_certificate_id}/jurisdictions/bulk_delete',
    headers={'Authorization': 'Bearer <token>'},
    json={
      'jurisdictions': ['US_CA', 'US_NY', 'US_TX']
    }
  )

  data = response.json()
  ```
</RequestExample>
