KeyValue icon

KeyValue

Store and retrieve key-value pairs on the filesystem

Actions20

Directory → Delete

AI-generated

Summary

Delete a named directory under the KeyValue storage base directory, recursively removing its contents. The operation errors if the directory does not exist.

Inputs

  • Directory Name (required) — Name of the directory to delete (a subdirectory under ~/.n8n-keyvalue).

Output shape

A list of items, one per input item, each with directory and deleted fields.

Successful deletion returns {"directory":"","deleted":true}. The directory and all its contents are removed recursively. The storage base directory defaults to ~/.n8n-keyvalue and can be set with N8N_KEYVALUE_DIR.

Links

Discussion