Skip to main content
MysteryBox has been renamed to SecretStash. In CLI commands, SDK imports and role IDs, use secretstash instead of mysterybox.
You can delete individual versions or entire secrets. Deleted items can be restored within 30 days. After 30 days, deleted secrets and versions are permanently removed.

Prerequisites

Deleting versions and secrets

How to delete a version

You can delete any version, even a primary one. However, if you delete a primary version and do not assign another version as primary, you will receive an error when requesting the secret payload without specifying a version. You can only retrieve a payload without specifying a version if the secret has a primary version.
  1. In the web console, go to  Cryptography → SecretStash.
  2. Open the page of the required secret.
  3. Go to the Versions tab.
  4. In the line of the version that you want to delete, click  → Delete.
  5. Confirm the version deletion.

How to delete a secret

  1. In the web console, go to  Cryptography → SecretStash.
  2. Locate the required secret and then click  → Delete.
  3. Confirm the deletion of the secret.
A deleted secret counts toward the quota (see Quotas in SecretStash) for 30 days after you delete it. If you hit the quota, you can request to increase it.

Restoring versions and secrets

You can restore deleted items within 30 days after deletion.

How to restore a version

  1. In the web console, go to  Cryptography → SecretStash.
  2. Open the page of the required secret.
  3. Go to the Versions tab.
  4. To view versions scheduled for deletion, switch to the Inactive tab.
  5. In the line of the required version, click Restore.
  6. Confirm the version restoration.

How to restore a secret

  1. In the web console, go to  Cryptography → SecretStash.
  2. To view secrets scheduled for deletion, switch to the Inactive tab.
  3. Locate the required secret and then click Restore.
  4. Confirm the restoration of the secret.