---
title: "Delete application state for an SBI, grant code and version"
method: DELETE
path: "/state"
tags: ["State"]
---

# Delete application state for an SBI, grant code and version

`DELETE /state`

## Query parameters

- `sbi` string, required
- `grantCode` string, required
- `grantVersion` union, required
  - string
  - integer

## Response `200`

State deleted

- StateDeleteResponse
  - `success` boolean, required
  - `deleted` boolean, required

## Other responses

- `400` — Validation error
- `404` — No state found for the given identifiers
- `500` — Failed to delete state

## Changes

- **2026-06-29** `047f9b2e19c3` — 1 info
  - the endpoint scheme security `bearerAuth AND lockToken` was added to the API
- **2026-04-22** `7623fe906e93` — 1 breaking, 2 info
  - the `query` request parameter `grantVersion` became required
  - `query` request parameter `grantVersion` list-of-types was widened by adding types `integer`
  - for the `query` request parameter `grantVersion`, the type was generalized from `string` to no type
- **2026-04-15** `c9f9f7d113fd` — 1 info
  - for the `query` request parameter `grantVersion`, the type was generalized from `integer` to `string`, and format from `int32` to no format

[Change history](https://skmtc.dev/defra/apis/grants-ui-backend-api/changes/state/delete.md)

---

[API](https://skmtc.dev/defra/apis/grants-ui-backend-api.md) · [All operations](https://skmtc.dev/defra/apis/grants-ui-backend-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/defra/grants-ui-backend-api/revisions/09665d03cacb/schema)
