Actions8
Post → Delete
AI-generatedSummary
Deletes a single Ghost post by ID via the Ghost Admin API. Returns a small confirmation object rather than the deleted post.
Inputs
- postId (required) — The Ghost post ID to delete. Inserted into the request path as DELETE posts/{postId}/. Can be set per item with an expression, e.g. from an upstream Get Many node.
Output shape
One item per input item: { id:
The ID in the output is the input value, not data returned by Ghost. If the API call fails (e.g. post not found or bad credentials), the node throws an API error, unless 'Continue on Fail' is enabled. In that case it outputs { error:
} for that item. Each input item triggers its own delete request, and each request uses a freshly generated short-lived JWT from the Admin API key credential.
Examples
Example 1: Delete a single known post by its ID
Resource: Post, Operation: Delete, Post ID: 64f1a2b3c4d5e6f7a8b9c0d1
Example 2: Clean up drafts found by an earlier step
Ghost Blocks Get Many (Status: draft) feeding a Ghost Blocks Delete node with Post ID set to the expression {{ $json.id }}