Delete Post

wordpress.delete_post
ActionBusiness appsconnection required

Calls the WordPress API with the connection's credentials.

Delete a post. By default it goes to the trash and can be restored; set force to remove it permanently.

Connection

Required
Yes — the node will not save without one
Auth type
Username & password
Providers
WordPress
Secret shape
{"username": "…", "password": "… the application password …"}
Config it needs
site_url
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.

FieldTypeRequiredDefaultConstraintsExample
post_id
Id of the post to delete.
stringYes———
force
Skip the trash and delete the post permanently.
booleanNofalse——

Example configuration

Every value below is the contract’s own example or default — nothing invented.

{
  "force": false
}

Output

One shape.

result

The provider's response object, as returned.

Extra keys beyond the ones listed can appear.

{}

Notes

  • DELETE /wp/v2/posts/<id>. A trashing delete returns the post with status 'trash'; force=true returns {deleted: true, previous: {…}}.

See Delete Post run in a workflow.

In a technical demo we add the WordPress connection, drop the node on the canvas and let Workflow Health pre-flight it before the first real run.