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

This function requires elevated permissions and runs only on the backend and on dashboard pages.

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

The unique ID of the secret to be deleted.

Did this help?