8
n8n 한국어amn8n.com

WordPress에서의 기사와 특성 이미지를 대량으로 삭제

중급

이것은Marketing분야의자동화 워크플로우로, 14개의 노드를 포함합니다.주로 If, Filter, HttpRequest, ManualTrigger 등의 노드를 사용하며. 批量 WordPress에서의 기사와 특성 이미지를 삭제

사전 요구사항
  • 대상 API의 인증 정보가 필요할 수 있음

카테고리

워크플로우 미리보기
노드 연결 관계를 시각적으로 표시하며, 확대/축소 및 이동을 지원합니다
워크플로우 내보내기
다음 JSON 구성을 복사하여 n8n에 가져오면 이 워크플로우를 사용할 수 있습니다
{
  "meta": {
    "instanceId": "90f9a6ef38ec632934192a5de51518245cd649d4287258dedc9971969910cdb7"
  },
  "nodes": [
    {
      "id": "268a318e-a605-40dc-b28f-b16ff038399d",
      "name": "이미지 삭제",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1700,
        420
      ],
      "parameters": {
        "url": "={{ $('Change your Domain here').item.json.wpUrl }}/wp-json/wp/v2/media/{{ $json.id }}",
        "method": "DELETE",
        "options": {},
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "force",
              "value": "true"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "97381d8a-bcba-4ea6-9fce-ab56a1588c83",
      "name": "이미지 가져오기",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1520,
        420
      ],
      "parameters": {
        "url": "={{ $('Change your Domain here').item.json.wpUrl }}/wp-json/wp/v2/media/{{ $('Filter').item.json.featured_media }}",
        "options": {}
      },
      "typeVersion": 4.2
    },
    {
      "id": "07eb4f65-da06-413b-af1e-98504dc6050c",
      "name": "게시물 가져오기",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        600,
        580
      ],
      "parameters": {
        "url": "={{ $('Change your Domain here').item.json.wpUrl }}/wp-json/wp/v2/posts",
        "options": {},
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "status",
              "value": "pending"
            },
            {
              "name": "order",
              "value": "asc"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "c18c430f-98d9-4e7c-9688-3cc2cfa5daa3",
      "name": "게시물 삭제",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1880,
        600
      ],
      "parameters": {
        "url": "={{ $('Change your Domain here').item.json.wpUrl }}/wp-json/wp/v2/posts/{{ $('Filter').item.json.id }}",
        "method": "DELETE",
        "options": {},
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "force",
              "value": "true"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "0d00aa0f-c030-489d-a7e1-744cdf0c1c7b",
      "name": "필터",
      "type": "n8n-nodes-base.filter",
      "position": [
        900,
        580
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "d099ced6-1ad2-4b37-a877-435b4f14537c",
              "operator": {
                "type": "number",
                "operation": "lt"
              },
              "leftValue": "={{ $itemIndex }}",
              "rightValue": 1
            }
          ]
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "1f6f520f-35f1-4424-9cec-431175c42c0f",
      "name": "이미지 있음",
      "type": "n8n-nodes-base.if",
      "position": [
        1200,
        580
      ],
      "parameters": {
        "options": {},
        "conditions": {
          "options": {
            "leftValue": "",
            "caseSensitive": true,
            "typeValidation": "strict"
          },
          "combinator": "and",
          "conditions": [
            {
              "id": "c1c1463c-be82-4ba0-9dd3-280dec6c2924",
              "operator": {
                "type": "number",
                "operation": "notEquals"
              },
              "leftValue": "={{ $('Filter').item.json.featured_media }}",
              "rightValue": 0
            }
          ]
        }
      },
      "typeVersion": 2.1
    },
    {
      "id": "36465680-6de2-484a-94e0-e7778b0ed7ef",
      "name": "메모",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        800,
        240
      ],
      "parameters": {
        "width": 297.80842911877414,
        "height": 512.4904214559392,
        "content": "## Approvals\nBuilt out your approval process here.\n\nEither use this workflow as a manually-driven time saver. Or split it into two workflows with your approvals in an external app like Slack or email. \"Approve\" link in the external message should fire a webhook that triggers the second half of this workflow with idintifiable post info (ie. post `id` and `featured_media`)"
      },
      "typeVersion": 1
    },
    {
      "id": "3e200e7f-f14b-4897-a1b1-274256fa72a7",
      "name": "메모2",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1100,
        240
      ],
      "parameters": {
        "color": 4,
        "width": 317.5478927203068,
        "height": 512.4904214559392,
        "content": "## Router\nThis step detects if the post has a featured image associated."
      },
      "typeVersion": 1
    },
    {
      "id": "9f017854-e445-409f-a465-5eef1c09e891",
      "name": "메모4",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        1420,
        240
      ],
      "parameters": {
        "color": 6,
        "width": 696.8275862068976,
        "height": 512.4904214559392,
        "content": "## This is the Magic\nIf the post has a featured media associated, the workflow will first deleted that media, then delete the post.\n\nIf it has no media associated, then the workflow simply deletes the post."
      },
      "typeVersion": 1
    },
    {
      "id": "b82386f4-f759-40ac-b89a-43815875882c",
      "name": "메모3",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        200,
        240
      ],
      "parameters": {
        "color": 5,
        "width": 297.80842911877414,
        "height": 512.4904214559392,
        "content": "## Trigger\nThis workflow is set up for bulk/batch deletion of many WordPress posts.\n\nIt has been pre-loaded with the property `wpUrl` set to 'https://setyourwordpresshere.com' - which you should change to your site's domain.\n\nYou could modify this into your post approval or editorial process, in which case you'd use a different trigger, maybe when a post in WP is saved (you can also filter based on `stats`, ie. when a post with `status` **'pending review'** is created)."
      },
      "typeVersion": 1
    },
    {
      "id": "03d113e5-c1c0-4dab-ac64-c6a9388b9d91",
      "name": "메모5",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        500,
        240
      ],
      "parameters": {
        "color": 3,
        "width": 297.80842911877414,
        "height": 512.4904214559392,
        "content": "## Get Your Posts\n**IMPORTANT:** Be sure to add your authentication for WordPress in the HTTP Request node.\n\nThis request will return all `pending` status posts, ordered by *date, descending*. So it returns the oldest pending posts first. You can adjust these parameters, as well as add other filters like `categories`, etc."
      },
      "typeVersion": 1
    },
    {
      "id": "72d4044c-8e62-43dc-8fd7-0b3fc9accbca",
      "name": "이미지 포함 게시물 삭제",
      "type": "n8n-nodes-base.httpRequest",
      "position": [
        1880,
        420
      ],
      "parameters": {
        "url": "={{ $('Change your Domain here').item.json.wpUrl }}/wp-json/wp/v2/posts/{{ $('Filter').item.json.id }}",
        "method": "DELETE",
        "options": {},
        "sendBody": true,
        "bodyParameters": {
          "parameters": [
            {
              "name": "force",
              "value": "true"
            }
          ]
        }
      },
      "typeVersion": 4.2
    },
    {
      "id": "3ccd76b6-8b6f-462e-bb29-a539b7a8e286",
      "name": "메모1",
      "type": "n8n-nodes-base.stickyNote",
      "position": [
        2120,
        240
      ],
      "parameters": {
        "color": 7,
        "width": 286.52873563218395,
        "height": 512.490421455939,
        "content": "## Expansion\nYou might consider storing the results of the deleted posts to a data storage tool like Airtable, Nocodb, Sheets, or a database, for good record keeping."
      },
      "typeVersion": 1
    },
    {
      "id": "ac2c0f9a-ed6a-44cc-8ac7-0498187133e4",
      "name": "도메인 변경",
      "type": "n8n-nodes-base.manualTrigger",
      "position": [
        300,
        580
      ],
      "parameters": {},
      "typeVersion": 1
    }
  ],
  "pinData": {
    "Change your Domain here": [
      {
        "wpUrl": "https://setyourwordpresshere.com"
      }
    ]
  },
  "connections": {
    "0d00aa0f-c030-489d-a7e1-744cdf0c1c7b": {
      "main": [
        [
          {
            "node": "1f6f520f-35f1-4424-9cec-431175c42c0f",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "1f6f520f-35f1-4424-9cec-431175c42c0f": {
      "main": [
        [
          {
            "node": "97381d8a-bcba-4ea6-9fce-ab56a1588c83",
            "type": "main",
            "index": 0
          }
        ],
        [
          {
            "node": "c18c430f-98d9-4e7c-9688-3cc2cfa5daa3",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "97381d8a-bcba-4ea6-9fce-ab56a1588c83": {
      "main": [
        [
          {
            "node": "268a318e-a605-40dc-b28f-b16ff038399d",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "07eb4f65-da06-413b-af1e-98504dc6050c": {
      "main": [
        [
          {
            "node": "0d00aa0f-c030-489d-a7e1-744cdf0c1c7b",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "268a318e-a605-40dc-b28f-b16ff038399d": {
      "main": [
        [
          {
            "node": "72d4044c-8e62-43dc-8fd7-0b3fc9accbca",
            "type": "main",
            "index": 0
          }
        ]
      ]
    },
    "ac2c0f9a-ed6a-44cc-8ac7-0498187133e4": {
      "main": [
        [
          {
            "node": "07eb4f65-da06-413b-af1e-98504dc6050c",
            "type": "main",
            "index": 0
          }
        ]
      ]
    }
  }
}
자주 묻는 질문

이 워크플로우를 어떻게 사용하나요?

위의 JSON 구성 코드를 복사하여 n8n 인스턴스에서 새 워크플로우를 생성하고 "JSON에서 가져오기"를 선택한 후, 구성을 붙여넣고 필요에 따라 인증 설정을 수정하세요.

이 워크플로우는 어떤 시나리오에 적합한가요?

중급 - 마케팅

유료인가요?

이 워크플로우는 완전히 무료이며 직접 가져와 사용할 수 있습니다. 다만, 워크플로우에서 사용하는 타사 서비스(예: OpenAI API)는 사용자 직접 비용을 지불해야 할 수 있습니다.

워크플로우 정보
난이도
중급
노드 수14
카테고리1
노드 유형5
난이도 설명

일정 경험을 가진 사용자를 위한 6-15개 노드의 중간 복잡도 워크플로우

외부 링크
n8n.io에서 보기

이 워크플로우 공유

카테고리

카테고리: 34