Skip to content

WordPress - Delete Post

This module allows deleting posts from a WordPress site. By default it moves the post to trash, but with the force option it can delete it permanently.

FieldDescriptionExample
urlWordPress site base URLhttps://my-site.com
usernameWordPress usernameadmin
application_passwordApplication password generated in WordPressxxxx xxxx xxxx xxxx
FieldTypeRequiredDescription
credentials_idcredentialsYesWordPress credential
post_idtextYesPost ID to delete
forcebooleanNotrue = delete permanently. Default: false (trash)
{
"success": true,
"deleted": { "id": 123, "status": "trash" },
"message": "Post 123 moved to trash"
}
{
"post_id": "123"
}
{
"post_id": "123",
"force": true
}
  • Without the force option, the post is moved to trash and can be recovered
  • With force=true, the deletion is permanent and irreversible
  • The post ID supports variables with {{id}} syntax
  • WordpressGetPosts - Get posts to identify which to delete
  • WordpressCreatePost - Create a new post
  • WordpressUpdatePost - Update a post instead of deleting it