deleteIfNotUsed
Deletes an abstract file safely from the vault, but only if it is not referenced by other notes.
Import:
import { deleteIfNotUsed } from 'obsidian-dev-utils/obsidian/vault-delete';Signature:
function deleteIfNotUsed(params: DeleteIfNotUsedParams): Promise<boolean>Parameters:
| Parameter | Type | Description |
|---|---|---|
params | DeleteIfNotUsedParams | The parameters for the function. |
Returns: Promise<boolean> — A Promise that resolves to a boolean indicating whether the removal was successful.