Batch Delete Posts and Featured Images in WordPress — Workflow n8n

Średnia złożoność Wyzwalacz8 węzłów🏷️ Miscellaneous👁 37 wyświetleńautor: Eric

Przegląd

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

Użyte węzły

HTTP Request

Podgląd workflow

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

Jak to działa

  1. 1

    Wyzwalacz

    Workflow uruchamia się wyzwalaczem wyzwalacz.

  2. 2

    Przetwarzanie

    Dane przepływają przez 8 węzłów, connecting filter, httprequest, if.

  3. 3

    Wyjście

    Workflow kończy automatyzację i dostarcza wynik do skonfigurowanego miejsca docelowego.

Szczegóły węzłów (8)

HT

HTTP Request

httpRequest

#1

Jak zaimportować ten workflow

  1. 1Kliknij przycisk Pobierz JSON po prawej stronie, aby zapisać plik workflow.
  2. 2Otwórz swoją instancję n8n. Przejdź do Workflow → Nowy → Importuj z pliku.
  3. 3Wybierz pobrany plik batch-delete-posts-and-featured-images-in-wordpress i kliknij Importuj.
  4. 4Skonfiguruj dane uwierzytelniające dla każdego węzła usługi (klucze API, OAuth itp.).
  5. 5Kliknij Testuj workflow, aby sprawdzić, czy wszystko działa, a następnie aktywuj go.

Lub wklej bezpośrednio w n8n → Importuj z JSON:

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

Integracje

filterhttprequestifmanualtrigger

Pobierz ten workflow

Pobierz i zaimportuj jednym kliknięciem

Pobierz JSONZobacz na n8n.io
Węzły8
Złożonośćmedium
Wyzwalacztrigger
Wyświetlenia37
KategoriaMiscellaneous

Autor

Eric

Eric

@automation-wizard

Tagi

filterhttprequestifmanualtrigger

Nowy w n8n?

n8n to darmowe narzędzie open-source do automatyzacji workflow. Hostuj samodzielnie lub użyj wersji chmurowej.

Pobierz n8n za darmo →

Related Miscellaneous Workflows