Skip to main content
Use this endpoint to remove one or more saved agent versions that you no longer need. You can delete multiple versions in a single request by passing an array of version IDs. This is useful for cleaning up outdated snapshots and keeping your version list manageable.
Deletion is permanent. Once a version is deleted it cannot be recovered. Make sure you no longer need a version — including its instructions, chat flow, and all other configuration fields — before deleting it. The currently active version is protected and cannot be deleted; switch to a different active version first if needed.

Request

DELETE https://app.botsify.com/api/v1/delete-version Authorization: Bearer token — include your token in the Authorization: Bearer <token> header.

Body Parameters

integer[]
required
An array of one or more version IDs to delete. All specified versions must belong to a bot accessible by the authenticated token.

Example — Delete a Single Version

Example — Delete Multiple Versions

Response

A successful request returns 200 OK with a summary of which versions were deleted.
If you attempt to delete the currently active version, the API returns a 422 Unprocessable Entity error: