Deleting an API Key

Delete an API key in OCI Generative AI.

    1. On the API keys list page, find the API key that you want to delete. If you need help finding the list page for API keys, see Listing API Keys.
    2. To view the API keys in a different compartment, use the Compartment filter to switch compartments.
      You must have permission to work in a compartment to see the resources in it. If you're not sure which compartment to use, contact an administrator. For more information, see Understanding Compartments.
    3. From the Actions menu (three dots) for the API key that you want to delete, select Delete.
    4. When prompted, confirm the deletion.
  • Use the api-key delete command and required parameters to delete an API key:

    oci generative-ai api-key delete [OPTIONS]

    For a complete list of parameters and values for CLI commands, see the CLI Command Reference.

  • Run the DeleteApiKey operation to delete an API key.