import Runloop from '@runloop/api-client';
const client = new Runloop({
bearerToken: process.env['RUNLOOP_API_KEY'], // This is the default and can be omitted
});
const secretView = await client.secrets.delete('name');
console.log(secretView.id);{
"id": "<string>",
"name": "<string>",
"create_time_ms": 123,
"update_time_ms": 123
}Delete an existing Secret by name. This action is irreversible and will remove the Secret from all Devboxes.
import Runloop from '@runloop/api-client';
const client = new Runloop({
bearerToken: process.env['RUNLOOP_API_KEY'], // This is the default and can be omitted
});
const secretView = await client.secrets.delete('name');
console.log(secretView.id);{
"id": "<string>",
"name": "<string>",
"create_time_ms": 123,
"update_time_ms": 123
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
The name of the Secret to delete.
The body is of type object.
Secret deleted successfully. Returns the deleted Secret (without value for security).
A Secret represents a key-value pair that can be securely stored and used in Devboxes as environment variables.
The unique identifier of the Secret.
The globally unique name of the Secret. Used as the environment variable name in Devboxes.
Creation time of the Secret (Unix timestamp in milliseconds).
Last update time of the Secret (Unix timestamp in milliseconds).
Was this page helpful?