delete

Description

Delete a secret from your organization. This action permanently removes the secret and cannot be undone.

Synopsis

$ abeja secret delete [--help]
Usage: abeja secret delete [OPTIONS]

  Delete a secret

Options:
  -s, --secret_id, --secret-id TEXT
                                  Secret ID  [required]
  --organization_id, --organization-id TEXT
                                  Organization ID. If not specified, the current
                                  organization ID is used.
  -y, --yes                       Skip confirmation prompt
  --help                          Show this message and exit.

Options

-s, --secret_id, --secret-id

Specify the ID of the secret you want to delete. This option is required.

--organization_id, --organization-id

Specify the organization ID. If not specified, the current organization ID from the configuration is used.

-y, --yes

Skip the confirmation prompt and proceed with deletion immediately. Use with caution.

Example

Delete a secret with confirmation

Command:

$ abeja secret delete --secret-id secret-abcdef123456

Output:

Are you sure you want to delete the following secret?
  - ID: secret-abcdef123456
  - Name: database-password
  - Description: Production database password
  - Created at: 2023-05-01T10:30:00.000000Z
  - Updated at: 2023-05-12T16:05:00.000000Z
[Y/n]: Y
Secret deleted successfully
{
  "message": "Secret deleted"
}

Delete a secret without confirmation

Command:

$ abeja secret delete --secret-id secret-ghijkl789012 --yes

Output:

Secret deleted successfully
{
  "message": "Secret deleted"
}