Commit dc7d64de authored by Nicholas Klick's avatar Nicholas Klick Committed by Amy Qualls

Add docs for removing a State file

parent ac137926
......@@ -324,6 +324,14 @@ commands will detect it and remind you to do so if necessary.
If you type `yes`, it copies your state from the old location to the new
location. You can then go back to running it from within GitLab CI.
## Removing a State file
You can only remove a state file by making a request to the API, like the following example:
```shell
curl --header "Private-Token: <your_access_token>" --request DELETE "https://gitlab.example.com/api/v4/projects/<your_project_id/terraform/state/<your_state_name>"
```
## Output Terraform Plan information into a merge request
Using the [GitLab Terraform Report artifact](../../ci/pipelines/job_artifacts.md#artifactsreportsterraform),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment