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.

Admin Method

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

Permission Scopes

For app development, you must have one of the following permission scopes:
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