Canceling Deletion of a Secret

Cancel the deletion of a secret during the waiting period.

    1. Open the navigation menu, click Identity & Security, and then click Vault.
    2. Under List scope, select a compartment that contains the secret that you want to cancel the deletion.
    3. On the Vaults page, click the name of the vault to open its details page.

    4. Under Resources, click Secrets and then click the name of the secret to open its details page.
    5. Click Cancel Deletion.
    6. Confirm that you want to cancel the secret's deletion by clicking Cancel Deletion. Access to the secret and any resources or services that used the contents of the secret is restored after the secret returns to active state.
  • Open a command prompt and run oci vault secret cancel-secret-deletion to cancel the scheduled deletion of a secret:

    oci vault secret cancel-secret-deletion --secret-id <target_secret_id>

    For example:

    
    oci vault secret cancel-secret-deletion --secret-id ocid1.vaultsecret.oc1.iad.exampleaz5qacpqahuecvbjqzql4qmpbrtd7pprafhivcfik6wuitexample

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

  • Run the CancelSecretDeletion operation to cancel the deletion of a vault secret.