Obsidian Vault REST API icon

Obsidian Vault REST API

Interact with Obsidian Vault via REST API

Overview

This node allows users to delete a note from an Obsidian Vault via its REST API. It is useful in scenarios where you want to programmatically manage your notes, such as cleaning up outdated or irrelevant notes automatically, integrating note deletion into workflows, or syncing notes with other systems.

For example, if you have a workflow that processes tasks and creates notes for each task, once a task is completed or canceled, this node can be used to delete the corresponding note by specifying its path.

Properties

Name Meaning
Path The file path of the note within the Obsidian Vault that you want to delete. This must be provided and should point exactly to the note to remove.

Output

The node outputs JSON data representing the response from the Obsidian Vault REST API after attempting to delete the specified note. Typically, this will include confirmation of deletion or error details if the operation failed.

No binary data output is produced by this node.

Dependencies

  • Requires access to an Obsidian Vault REST API endpoint.
  • Needs an API host URL configured in credentials or environment variables.
  • May require an API authentication token or key depending on the Obsidian Vault API setup (not explicitly shown but implied by the need for credentials).

Troubleshooting

  • Common issues:

    • Incorrect or missing note path will cause the deletion to fail.
    • Network connectivity problems or incorrect API host configuration can prevent communication with the Obsidian Vault.
    • Insufficient permissions or missing authentication may result in authorization errors.
  • Error messages:

    • "Note not found" or similar indicates the specified path does not exist.
    • "Unauthorized" or "Forbidden" suggests missing or invalid API credentials.
    • Timeout or connection errors indicate network or server availability issues.

To resolve these:

  • Double-check the exact path of the note in the vault.
  • Verify API host URL and credentials are correctly set.
  • Ensure the API user has permission to delete notes.

Links and References

Discussion