deleteSecret( )


Deletes an existing secret by ID.

The deleteSecret() function returns a Promise that resolves when the secret is deleted. You can retrieve the secret _id using the listSecretInfo() function.

Note: Deleting a secret is irreversible and will break all code using the secret.

Authentication

You can only call this method when authenticated as a Wix app or Wix user identity.

Permissions
Manage Secrets
Learn more about app permissions.
Method Declaration
Copy
Method Parameters
_idstringRequired

The unique ID of the secret to be deleted.

Was this helpful?
Yes
No