fn delete(&self, type_: &[u8], id: &[u8]) -> IndyResult<()> {
        let row_count = self.conn.execute(
            "DELETE FROM items where type = ?1 AND name = ?2",
            &[&type_.to_vec(), &id.to_vec()],
        )?;

        if row_count == 1 {
            Ok(())
        } else {
            Err(err_msg(IndyErrorKind::WalletItemNotFound, "Item to delete not found"))
        }
    }
///
/// deletes value and tags into storage.
/// Returns Result with () on success or
/// Result with IndyError in case of failure.
///
///
/// # Arguments
///
///  * `type_` - type of the item in storage
///  * `id` - id of the item in storage
///
/// # Returns
///
/// Result that can be either:
///
///  * `()`
///  * `IndyError`
///
/// # Errors
///
/// Any of the following `IndyError` type_ of errors can be throw by this method:
///
///  * `IndyError::Closed` - Storage is closed
///  * `IndyError::ItemNotFound` - Item is not found in database
///  * `IOError("IO error during storage operation:...")` - Failed connection or SQL query
///
deletes value and tags into storage.
Returns Result with () on success or
Result with IndyError in case of failure.
deletes value and tags into storage . Returns Result with () on success or Result with IndyError in case of failure .
fn delete(&self, type_: &[u8], id: &[u8]) -> IndyResult<()> {
        let row_count = self.conn.execute(
            "DELETE FROM items where type = ?1 AND name = ?2",
            &[&type_.to_vec(), &id.to_vec()],
        )?;
        if row_count == 1 {
            Ok(())
        } else {
            Err(err_msg(IndyErrorKind::WalletItemNotFound, "Item to delete not found"))
        }
    }
fn delete ( & self , type_ : & [ u8 ] , id : & [ u8 ] ) -> IndyResult < ( ) > { let row_count = self . conn . execute ( " " , & [ & type_ . to_vec ( ) , & id . to_vec ( ) ] , ) ? ; if row_count == 1 { Ok ( ( ) ) } else { Err ( err_msg ( IndyErrorKind :: WalletItemNotFound , " " ) ) } }
deletes value and tags into storage.
deletes value and tags into storage .
&self
type_
&[u8]
id
&[u8]
Result that can be either.


Result that can be either .
&self
type_
&[u8]
id
&[u8]
errors
Any of the following `IndyError` type_ of errors can be throw by this method.

`IndyError::Closed` - Storage is closed
`IndyError::ItemNotFound` - Item is not found in database
`IOError("IO error during storage operation:...")` - Failed connection or SQL query
Any of the following ` IndyError ` type_ of errors can be throw by this method . ` IndyError :: Closed ` - Storage is closed ` IndyError :: ItemNotFound ` - Item is not found in database ` IOError ( " IO error during storage operation : ... " ) ` - Failed connection or SQL query