v2_rum_DeleteRUMApplication/
v2_rum_DeleteRUMApplication.rs

1// Delete a RUM application returns "No Content" response
2use datadog_api_client::datadog;
3use datadog_api_client::datadogV2::api_rum::RUMAPI;
4
5#[tokio::main]
6async fn main() {
7    // there is a valid "rum_application" in the system
8    let rum_application_data_id = std::env::var("RUM_APPLICATION_DATA_ID").unwrap();
9    let configuration = datadog::Configuration::new();
10    let api = RUMAPI::with_config(configuration);
11    let resp = api
12        .delete_rum_application(rum_application_data_id.clone())
13        .await;
14    if let Ok(value) = resp {
15        println!("{:#?}", value);
16    } else {
17        println!("{:#?}", resp.unwrap_err());
18    }
19}