How to Delete an OIDC Provider

Updated on 01 June, 2026

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.

Note
Deleting a provider does not delete the auto-created Vultr-managed issuer. Delete the issuer separately if needed.

Follow this guide to delete an OIDC provider using the Vultr API or Terraform.

  • Vultr API
  • Terraform
  1. Send a GET request to the List OIDC Providers endpoint to retrieve all providers.

    console
    $ 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.

  2. Send a DELETE request to the Delete OIDC Provider endpoint. Replace {provider-id} with the provider id.

    console
    $ 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.

  1. Ensure the Vultr Terraform provider is configured in your Terraform project.

  2. Destroy the OIDC provider resource. Replace my_provider with the resource label used in your configuration.

    console
    $ terraform destroy -target=vultr_oidc_provider.my_provider
    

    Alternatively, remove the vultr_oidc_provider block from your configuration and run:

    console
    $ terraform apply
    

    Verify that the output shows vultr_oidc_provider.my_provider: Destruction complete.

Comments