You are an expert in writing code in many different languages. Your goal is to perform code completion for the following code, keeping in mind the rest of the code and the file meta data.
    Metadata details:
    filename: delete.rs
    path of file: ./repos/wrangler-legacy/src/commands/kv/key
    
    the code of the file until where you have to start completion: use cloudflare::endpoints::workerskv::delete_key::DeleteKey;
use cloudflare::framework::apiclient::ApiClient;

use anyhow::Result;

use crate::commands::kv::format_error;
use crate::http;
use crate::settings::global_user::GlobalUser;
use crate::settings::toml::Target;
use crate::terminal::interactive;
use crate::terminal::message::{Message, StdOut};
pub fn delete(target: &Target, user: &GlobalUser, id: &str, key: &str, force: bool) -> Result<()> {
    let client = http::cf_v4_client(user)?;

    if !force {
        match interactive::confirm(&format!("Are you s
    
pub fn delete(target: &Target, user: &GlobalUser, id: &str, key: &str, force: bool) -> Result<()> {
    let client = http::cf_v4_client(user)?;

    if !force {
        match interactive::confirm(&format!("Are you sure you want to delete key \"{}\"?", key)) {
            Ok(true) => (),
            Ok(false) => {
                StdOut::info(&format!("Not deleting key \"{}\"", key));
                return Ok(());
            }
            Err(e) => anyhow::bail!(e),
        }
    }

    let msg = format!("Deleting key \"{}\"", key);
    StdOut::working(&msg);

    let response = client.request(&DeleteKey {
        account_identifier: target.account_id.load()?,
        namespace_identifier: id,
        key, // this is url encoded within cloudflare-rs
    });

    match response {
        Ok(_) => StdOut::success("Success"),
        Err(e) => print!("{}", format_error(e)),
    }

    Ok(())
}