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/termscp/src/ui/activities/filetransfer/actions
    
    the code of the file until where you have to start completion: //! ## FileTransferActivity
//!
//! `filetransfer_activiy` is the module which implements the Filetransfer activity, which is the main activity afterall

// locals
use remotefs::File;

use super::{FileTransferActivity, LogLevel, SelectedFile};

impl FileTransferActivity {
    pub(crate) fn action_local_delete(&mut self) {
        match self.get_local_selected_entries() {
            SelectedFile::One(entry) => {
                // Delete file
 
    
    pub(crate) fn local_remove_file(&mut self, entry: &File) {
        match self.host.remove(entry) {
            Ok(_) => {
                // Log
                self.log(
                    LogLevel::Info,
                    format!("Removed file \"{}\"", entry.path().display()),
                );
            }
            Err(err) => {
                self.log_and_alert(
                    LogLevel::Error,
                    format!(
                        "Could not delete file \"{}\": {}",
                        entry.path().display(),
                        err
                    ),
                );
            }
        }
    }