Skip to content

Delete a Terraform state protection rule

DELETE
/api/v4/projects/{id}/terraform/state_protection_rules/{terraform_state_protection_rule_id}

This feature was introduced in GitLab 19.0.

id
required
One of:
string

The ID or URL-encoded path of the project

terraform_state_protection_rule_id
required
integer

The ID of the Terraform state protection rule

204 No Content

Bad Request

Unauthorized

Forbidden

Not Found