pub fn vault_delete(key: &str, book: &Book) -> VResult<()> {
    if let Some(mut service) = load_service(book)? {
        if let Ok((_, update_key)) = (*service).read(key) {
            (*service).delete(key, update_key)?;
        }
    }
    Ok(())
}
/// Delete a vault from the remote.
Delete a vault from the remote.
Delete a vault from the remote .
pub fn vault_delete(key: &str, book: &Book) -> VResult<()> {
    if let Some(mut service) = load_service(book)? {
        if let Ok((_, update_key)) = (*service).read(key) {
            (*service).delete(key, update_key)?;
        }
    }
    Ok(())
}
pub fn vault_delete ( key : & str , book : & Book ) -> VResult < ( ) > { if let Some ( mut service ) = load_service ( book ) ? { if let Ok ( ( _ , update_key ) ) = ( * service ) . read ( key ) { ( * service ) . delete ( key , update_key ) ? ; } } Ok ( ( ) ) }
Delete a vault from the remote.
Delete a vault from the remote .
key
&str
book
&Book
key
&str
book
&Book