Skip to content

Permanently delete trashed node

Start from the script setup block, then add the snippet code below.

Permanently delete a node that is already in the trash. Requires write:hierarchy.

# ... script setup ...
NODE_ID = "your-trashed-node-id"
api_delete(f"/v1/nodes/{NODE_ID}/hard")
print(f"Hard-deleted {NODE_ID}")