Uninstalling the Terraform provider

Before you uninstall

Before removing the provider, ensure that all certificates managed by it are either:

  • No longer needed (destroy them first with terraform destroy), or

  • Managed through another method (for example, the SCM web interface).

Removing the provider without first destroying managed resources will leave certificates in their current state on the Sectigo platform. They will not be automatically revoked.

Destroy managed resources

Revoke all certificates managed by the provider and remove them from Terraform state.

terraform destroy

Review the plan output carefully before confirming.

Remove the provider binary

Delete the provider binary from the Terraform plugin directory.

rm -rf ~/.terraform.d/plugins/terraform.local/local/sectigo

Clean up the Terraform working directory

Remove the Terraform working directory files from your project.

rm -rf .terraform
rm -f .terraform.lock.hcl

Remove provider configuration

Remove the required_providers block and provider "sectigo" block from your Terraform configuration files.