Currently I have a detached pipeline which uses the Terraform with the remote Gitlab backend.

How can I after the pipeline has run delete BOTH the assets created and the statefile?

1 Answer 1


Currently Terraform can NOT delete statefiles stored in remote backends. The feature request for this is 34172.

Now what you have to do is run

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.