Delete an OIDC provider from your Vultr IAM configuration. Remove the identity provider to prevent further federated authentication through that endpoint.
Deleting an OIDC provider removes it from your organization. External systems that rely on this provider for authentication lose access.
Follow this guide to delete an OIDC provider using the Vultr API or Terraform.
Send a GET request to the List OIDC Providers endpoint to retrieve all providers.
$ curl "https://api.vultr.com/v2/oidc/provider" \
-X GET \
-H "Authorization: Bearer ${VULTR_API_KEY}"
Note the id of the provider you want to delete.
Send a DELETE request to the Delete OIDC Provider endpoint. Replace {provider-id} with the provider id.
$ curl "https://api.vultr.com/v2/oidc/provider/{provider-id}" \
-X DELETE \
-H "Authorization: Bearer ${VULTR_API_KEY}"
A successful deletion returns an HTTP 204 No Content response with no response body.
Ensure the Vultr Terraform provider is configured in your Terraform project.
Destroy the OIDC provider resource. Replace my_provider with the resource label used in your configuration.
$ terraform destroy -target=vultr_oidc_provider.my_provider
Alternatively, remove the vultr_oidc_provider block from your configuration and run:
$ terraform apply
Verify that the output shows vultr_oidc_provider.my_provider: Destruction complete.