---
title: "POST /v1/{+name}:deleteState"
method: POST
path: "/v1/{+name}:deleteState"
tags: ["projects"]
---

# POST /v1/{+name}:deleteState

`POST /v1/{+name}:deleteState`

Deletes Terraform state file in a given deployment.

## Path parameters

- `name` string, required

## Request body

- DeleteStatefileRequest — A request to delete a state file passed to a 'DeleteStatefile' call.
  - `lockId` string, int64 — Required. Lock ID of the lock file to verify that the user who is deleting the state file previously locked the Deployment.

## Response `200`

Successful response

---

[API](https://skmtc.net/google/apis/config.md) · [All operations](https://skmtc.net/google/apis/config/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/google/config/versions/22109f23b9eb/schema)
