# DELETE /2/abtests/{} is deprecated

Algolia Analytics API deprecated DELETE /2/abtests/{id} without giving a shutdown date yet.

Algolia deprecated the DELETE /2/abtests/{id} endpoint without a shutdown date. Calls made to this route are marked for removal and will eventually fail. Algolia Analytics API advises switching to the updated API version.

## What to use instead

Use the A/B Testing API v3 endpoint DELETE /3/abtests/{} instead.

- API: Algolia Analytics API (analytics.algolia.com)
- Kind: Endpoint removal
- Takes effect: no date given yet
- Calls after that day: fail
- Calls it hits: `DELETE /2/abtests/{id}`
- Source: [Announcement](https://raw.githubusercontent.com/algolia/api-clients-automation/main/specs/bundled/abtesting.yml)
- Verified: November 6, 2026, against Algolia Analytics API's own pages
- Page: https://www.okapi.bot/providers/algolia-analytics-api/breaking-changes/delete-2-abtests-is-deprecated/

## Algolia Analytics API's words

> This endpoint is deprecated. Use the A/B Testing API v3 instead.

Okapi finds the calls this change hits in your repo and opens the pull request with the fix: https://github.com/apps/okapi-agent
