Skip to content

content_posts_delete

Delete an idea or draft only if it has no publication history.

Tool

content_posts_delete

Delete an idea or draft only if it has no publication history.

Delete an idea or draft only if it has no publication history. Cancelled and failed publications also block deletion. This deletes its content versions and emits content/post.deleted; other statuses return post_not_deletable.

Behavior

HTTP
POST /content/posts/:postId/delete

Arguments

Name
Type
Required
Description
postId
string
•
The post id returned by content_posts_create.

Response

Field
Type
Always
Description
postId
string
•
The post id returned by content_posts_create.
deleted
boolean
•
The post and its content versions were deleted.

Try it

Delete an idea or draft only if it has no publication history.

When to use

Delete an idea or draft only if it has no publication history. Cancelled and failed publications also block deletion. This deletes its content versions and emits content/post.deleted; other statuses return post_not_deletable.

Example

Ask your agent something like this:

Delete an idea or draft only if it has no publication history.

The agent will invoke content_posts_delete with these arguments:

{
  "postId": "<postId>"
}

Esc

Start typing to search the docs.

↑↓navigate↵select