Delete Post
discourse.delete_post
ActionBusiness appsconnection required
Calls the Discourse API with the connection's credentials.
Delete a post from its topic.
Connection
- Required
- Yes — the node will not save without one
- Auth type
- API key
- Providers
- Discourse
- Secret shape
- the API key, or {"api_key": "…"}
- Config it needs
- base_url, api_username
- Resolved by
- config.connection_id, else node.connection_id
Configuration
2 fields, 1 required. A dotted path is a nested object and name[] an array of objects — the editor renders the same tree.
| Field | Type | Required | Default | Constraints | Example |
|---|---|---|---|---|---|
post_id The post's numeric Discourse id, as shown in the post's permalink. | string | Yes | — | — | 1234 |
force_destroy Permanently destroy the post rather than soft-deleting it. Discourse needs the can_permanently_delete site setting and an earlier soft delete of the same post before it will accept this. | boolean | No | false | — | — |
Example configuration
Every value below is the contract’s own example or default — nothing invented.
{
"force_destroy": false,
"post_id": "1234"
}Output
One shape.
result
| Field | Type | Example |
|---|---|---|
id The post that was accepted for deletion. | number | — |
deleted True once Discourse accepted the deletion. | boolean | — |
force_destroy Whether permanent deletion was requested. | boolean | — |
{
"deleted": false,
"force_destroy": false,
"id": 0
}Related Discourse nodes
See Delete Post run in a workflow.
In a technical demo we add the Discourse connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.