Optional
instanceIdOrOptions: string | DestroyOptionsA Result containing void on ok and a WalletNotFoundError on error
This is a destructive operation that cannot be undone. The wallet will have to be re created from scratch if destroyed.
The same list of extensions used when initialising the wallet instance must be provided so that resources created and managed by extension modules can also be removed properly.
You must also close the wallet instance that is currently initialised before calling this function, otherwise an exception will be thrown.
Generated using TypeDoc
Removes encryption keys and storage directories associated with the wallet
When destroying the current wallet instance, it will also be closed.