> Markdown versions of all pages of this connector library are available by appending `.md` to the page URL. For the full index of connectors, see [llms.txt](https://connectors.appmixer.com/llms.txt).

# Delete Page Post

- Component: `appmixer.facebook.page.DeletePagePost`
- Kind: Action
- Version: 1.0.0
- Visibility: Public
- Connector: [appmixer.facebook 2.4.0](https://connectors.appmixer.com/connector/appmixer.facebook/2.4.0.md)
- Component page: <https://connectors.appmixer.com/connector/appmixer.facebook/2.4.0/component/appmixer.facebook.page.DeletePagePost>

Delete a post published by a Facebook Page you manage.

## Input ports

### Port `in`

| Field | Type | Description |
| --- | --- | --- |
| Page (`pageId`) | text | The page that published the post. When left empty, the page is taken from the Post ID (its part before the underscore). |
| Post ID (`postId`) | text | ID of the post to delete, for example `107198938765432_122101234567890123`. Use the ID output of Create Page Post or Find Page Posts. |

## Output ports

### Port `out`

_No fields defined for this port._

## Full metadata (component.json)

```json
{
  "name": "appmixer.facebook.page.DeletePagePost",
  "author": "Appmixer <info@appmixer.com>",
  "label": "Delete Page Post",
  "description": "Delete a post published by a Facebook Page you manage.",
  "auth": {
    "service": "appmixer:facebook",
    "scope": [
      "pages_manage_posts",
      "pages_read_engagement"
    ]
  },
  "quota": {
    "manager": "appmixer:facebook",
    "resources": "requests",
    "scope": {
      "userId": "{{userId}}"
    }
  },
  "inPorts": [
    {
      "name": "in",
      "schema": {
        "type": "object",
        "properties": {
          "pageId": {
            "type": "string"
          },
          "postId": {
            "type": "string"
          }
        },
        "required": [
          "postId"
        ]
      },
      "inspector": {
        "inputs": {
          "pageId": {
            "type": "text",
            "label": "Page",
            "index": 1,
            "source": {
              "url": "/component/appmixer/facebook/page/ListPages?outPort=pages",
              "data": {
                "transform": "./ListPages#toSelectArray"
              }
            },
            "tooltip": "The page that published the post. When left empty, the page is taken from the Post ID (its part before the underscore)."
          },
          "postId": {
            "type": "text",
            "label": "Post ID",
            "index": 2,
            "tooltip": "ID of the post to delete, for example <code>107198938765432_122101234567890123</code>. Use the ID output of Create Page Post or Find Page Posts."
          }
        }
      }
    }
  ],
  "outPorts": [
    {
      "name": "out"
    }
  ],
  "icon": "(data URI omitted)"
}
```
