Obsidian Vault icon

Obsidian Vault

Read and write notes in a self-hosted Obsidian Vault via REST API

Actions7

Note → Delete

AI-generated

Summary

Deletes a note or folder from a self-hosted Obsidian Vault by sending a DELETE request to the vault REST API at /api/notes/delete with the given path.

Inputs

  • path (required) — Path of the note or folder to delete, relative to the vault root (e.g. 02 Projekte/EchtJetztKI/Notes.md). Sent as the path query string parameter.

Output shape

One output item per input item, whose json is the parsed JSON response from the Obsidian Vault API's delete endpoint.

The exact response fields depend on the server and aren't defined in the node source. If the request fails and Continue On Fail is enabled, the item is { error: message }. Otherwise the node throws. The credential Base URL must be set, or the node errors before running. The operation description says it can delete a folder as well as a note, but the node doesn't confirm how the server handles folders or whether deletion is permanent.

Examples

Example 1: Remove a temporary note after processing it

Resource: Note, Operation: Delete, Path: Inbox/temp.md

Example 2: Delete a note whose path comes from a previous node

Resource: Note, Operation: Delete, Path: expression such as {{ $json.path }}

Links

Discussion