def delete(
    name: str,
    cluster: str | None,
    _cloud_client: BentoCloudClient = Provide[BentoMLContainer.bentocloud_client],
):
    """Delete a secret on BentoCloud."""
    try:
        _cloud_client.secret.delete(name=name, cluster=cluster)
        rich.print(f"Secret [green]{name}[/] deleted successfully")
    except BentoMLException as e:
        raise_secret_error(e, "delete")
Delete a secret on BentoCloud.
src/bentoml_cli/secret.py