Closes and deletes every space and the identity itself, then wipes the storage they left behind (automerge documents, hypercore feeds, the feed store, the index tables and the keyring). The client stays open, so createIdentity may be called straight afterwards.
OptionaldeviceProfile: DeviceProfileDocumentOptionaloptions: { ids?: PublicKey[]; type?: string }Optionaloptions: Partial<Invitation>
TODO(burdon): Public API (move comments here).