---
title: How to Delete an OIDC Provider
url: https://docs.vultr.com/platform/iam/oidc/oidc-providers/how-to-delete-an-oidc-provider
description: Delete an OIDC provider from your Vultr IAM configuration. Remove the identity provider to prevent further federated authentication through that endpoint.
publish_date: 2026-03-24T19:52:56.725314Z
last_updated: 2026-06-01T20:44:08.351273Z
---

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"

    1. Send a `GET` request to the [**List OIDC Providers** endpoint](https://www.vultr.com/api/#tag/oidc/operation/list-oidc-providers) 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.

    1. Send a `DELETE` request to the [**Delete OIDC Provider** endpoint](https://www.vultr.com/api/#tag/oidc/operation/delete-oidc-provider). 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.

=== "Terraform"

    1. Ensure the [Vultr Terraform provider](https://registry.terraform.io/providers/vultr/vultr/latest/docs) is configured in your Terraform project.

    1. 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`.