Batch Delete Posts and Featured Images in WordPress — n8n Workflow

Mittel Komplexität Auslöser8 Knoten🏷️ Miscellaneous👁 37 Aufrufevon Eric

Übersicht

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

Verwendete Knoten

HTTP Request

Workflow-Vorschau

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

So funktioniert es

  1. 1

    Auslöser

    Der Workflow startet mit einem auslöser-Auslöser.

  2. 2

    Verarbeitung

    Die Daten fließen durch 8 Knoten, connecting filter, httprequest, if.

  3. 3

    Ausgabe

    Der Workflow schließt seine Automatisierung ab und liefert das Ergebnis an das konfigurierte Ziel.

Knotendetails (8)

HT

HTTP Request

httpRequest

#1

So importieren Sie diesen Workflow

  1. 1Klicken Sie rechts auf die Schaltfläche JSON herunterladen, um die Workflow-Datei zu speichern.
  2. 2Öffnen Sie Ihre n8n-Instanz. Gehen Sie zu Workflows → Neu → Aus Datei importieren.
  3. 3Wählen Sie die heruntergeladene Datei batch-delete-posts-and-featured-images-in-wordpress und klicken Sie auf Importieren.
  4. 4Richten Sie Anmeldedaten für jeden Dienstknoten ein (API-Schlüssel, OAuth usw.).
  5. 5Klicken Sie auf Workflow testen, um zu überprüfen, ob alles funktioniert, und aktivieren Sie es dann.

Oder direkt in n8n → Aus JSON importieren einfügen:

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

Integrationen

filterhttprequestifmanualtrigger

Diesen Workflow holen

Herunterladen und mit einem Klick importieren

JSON herunterladenAuf n8n.io ansehen
Knoten8
Komplexitätmedium
Auslösertrigger
Aufrufe37
KategorieMiscellaneous

Erstellt von

Eric

Eric

@automation-wizard

Tags

filterhttprequestifmanualtrigger

Neu bei n8n?

n8n ist ein kostenloses Open-Source-Workflow-Automatisierungstool. Selbst hosten oder die Cloud-Version nutzen.

n8n kostenlos holen →

Related Miscellaneous Workflows