Batch Delete Posts and Featured Images in WordPress — n8n 工作流

复杂度 触发器8 个节点🏷️ Miscellaneous👁 37 次查看作者:Eric

概览

Why use this You need to delete (many) posts on a WordPress website and also delete the featured image associated with each post.

Hours of rote work cut into a fraction with this automation.

How it works set your wordpress URL in the manual trigger node set your WP post search parameters (WP API returns 10 posts by default; you could also set up pagination for scaling this automation beyond 10 posts per execution) decide (and build) your filter/approval process

What you can expect this automa

使用的节点

HTTP Request

工作流预览

Approvals
Built out your approval process here.
Either use this workflow as a manually-driven time save
Router
This step detects if the post has a featured image asso
This is the Magic
If the post has a featured media associated, the workfl
If it has no media associated, then the workflow simply
Trigger
This workflow is set up for bulk/batch deletion of many
It has been pre-loaded with the property `wpUrl` set to
Get Your Posts
IMPORTANT: Be sure to add your authentication for WordP
This request will return all `pending` status posts, or
Expansion
You might consider storing the results of the deleted p
delete img
get img
get post
delete post
F
Filter
H
Has Img
delete post with img
C
Change your Domain here
8 nodes7 edges

工作原理

  1. 1

    触发器

    工作流由 触发器 触发器启动。

  2. 2

    处理

    数据流经 8 个节点, connecting filter, httprequest, if。

  3. 3

    输出

    工作流完成自动化并将结果发送到配置的目标。

节点详情 (8)

HT

HTTP Request

httpRequest

#1

如何导入此工作流

  1. 1点击右侧 下载 JSON 按钮保存工作流文件。
  2. 2打开你的 n8n 实例,依次点击 工作流 → 新建 → 从文件导入
  3. 3选择下载的 batch-delete-posts-and-featured-images-in-wordpress 文件并点击导入。
  4. 4为每个服务节点配置 凭证(API 密钥、OAuth 等)。
  5. 5点击 测试工作流 验证一切正常,然后激活它。

或直接在 n8n → 从 JSON 导入 中粘贴:

{ "name": "Batch Delete Posts and Featured Images in WordPress", "nodes": [...], ...}

集成

filterhttprequestifmanualtrigger

获取此工作流

一键下载并导入

下载 JSON在 n8n.io 上查看
节点8
复杂度medium
触发器trigger
查看次数37

创建者

Eric

Eric

@automation-wizard

标签

filterhttprequestifmanualtrigger

n8n 新手?

n8n 是一款免费开源的工作流自动化工具,支持自托管或使用云版本。

免费获取 n8n →

Related Miscellaneous Workflows