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: DeviceProfileDocumentHas EDGE move the identity's credentials off its HALO control feed onto a space root document,
and adopts that root on this device. Other devices of the identity adopt the same root when they
next open. Idempotent; resolves to the root URL, which identity.haloSpaceRootUrl then reports.
Optionaloptions: { ids?: PublicKey[]; type?: string }Optionaloptions: Partial<Invitation>
TODO(burdon): Public API (move comments here).