v2_app_builder_DeleteApp/
v2_app-builder_DeleteApp.rs

1// Delete App returns "OK" response
2use datadog_api_client::datadog;
3use datadog_api_client::datadogV2::api_app_builder::AppBuilderAPI;
4
5#[tokio::main]
6async fn main() {
7    // there is a valid "app" in the system
8    let app_data_id =
9        uuid::Uuid::parse_str(&std::env::var("APP_DATA_ID").unwrap()).expect("Invalid UUID");
10    let configuration = datadog::Configuration::new();
11    let api = AppBuilderAPI::with_config(configuration);
12    let resp = api.delete_app(app_data_id.clone()).await;
13    if let Ok(value) = resp {
14        println!("{:#?}", value);
15    } else {
16        println!("{:#?}", resp.unwrap_err());
17    }
18}