Skip to content

ObsidianTransport.unregisterVault method

ObsidianTransport › unregisterVault

Unregisters a vault path from the running Obsidian instance.

On desktop: closes the vault window and removes it from the registry. On mobile: removes vault files from the device.

Signature:

unregisterVault(vaultPath: string): Promise<void>

Parameters:

ParameterTypeDescription
vaultPathstringThe absolute path to the vault folder.

Returns: Promise<void>