use azure_sdk_keyvault::KeyVaultClient; use std::env; #[tokio::main] async fn main() -> Result<(), Box> { let client_id = env::var("CLIENT_ID").expect("Missing CLIENT_ID environment variable."); let client_secret = env::var("CLIENT_SECRET").expect("Missing CLIENT_SECRET environment variable."); let tenant_id = env::var("TENANT_ID").expect("Missing TENANT_ID environment variable."); let keyvault_name = env::var("KEYVAULT_NAME").expect("Missing KEYVAULT_NAME environment variable."); let secret_name = env::var("SECRET_NAME").expect("Missing SECRET_NAME environment variable."); let mut client = KeyVaultClient::new(&client_id, &client_secret, &tenant_id, &keyvault_name); client.delete_secret(&secret_name).await?; Ok(()) }