aries / net.globalid.aries.storage / WalletStorageManager / delete

delete

fun <T : BaseRecord> delete(wallet: Wallet, type: Class<T>, id: String): Single<Boolean>

Deletes a non-secret a record from wallet by id. This method is important because Java doesn't work with inline methods with reified generic.

Parameters

wallet - where the record will be deleted

type - is kind of the returning record

id - is unique identifier of the record in the wallet

Return
if the record is removed, the method will return true. Otherwise, the method will return false.

fun <reified T : BaseRecord> delete(wallet: Wallet, id: String): Single<Boolean>

Deletes a non-secret a record from wallet by id

Parameters

wallet - where the record will be deleted

id - is unique identifier of the record in the wallet

Return
if the record is removed, the method will return true. Otherwise, the method will return false.