Batch Delete Posts and Featured Images in WordPress — Workflow n8n

Moyen complexité Déclencheur8 nœuds🏷️ Miscellaneous👁 37 vuespar Eric

Aperçu

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

Nœuds utilisés

HTTP Request

Aperçu du 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

Comment ça fonctionne

  1. 1

    Déclencheur

    Le workflow démarre avec un déclencheur déclencheur.

  2. 2

    Traitement

    Les données transitent par 8 nœuds, connecting filter, httprequest, if.

  3. 3

    Sortie

    Le workflow termine son automatisation et livre le résultat à la destination configurée.

Détails des nœuds (8)

HT

HTTP Request

httpRequest

#1

Comment importer ce workflow

  1. 1Cliquez sur le bouton Télécharger JSON à droite pour enregistrer le fichier du workflow.
  2. 2Ouvrez votre instance n8n. Accédez à Workflows → Nouveau → Importer depuis un fichier.
  3. 3Sélectionnez le fichier batch-delete-posts-and-featured-images-in-wordpress téléchargé et cliquez sur Importer.
  4. 4Configurez les identifiants pour chaque nœud de service (clés API, OAuth, etc.).
  5. 5Cliquez sur Tester le workflow pour vérifier que tout fonctionne, puis activez-le.

Ou collez directement dans n8n → Importer depuis JSON :

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

Intégrations

filterhttprequestifmanualtrigger

Obtenir ce workflow

Téléchargez et importez en un clic

Télécharger JSONVoir sur n8n.io
Nœuds8
Complexitémedium
Déclencheurtrigger
Vues37
CatégorieMiscellaneous

Créé par

Eric

Eric

@automation-wizard

Tags

filterhttprequestifmanualtrigger

Nouveau sur n8n ?

n8n est un outil d'automatisation de workflows gratuit et open-source. Hébergez-le vous-même ou utilisez la version cloud.

Obtenir n8n gratuitement →

Related Miscellaneous Workflows