> ## Documentation Index
> Fetch the complete documentation index at: https://docs.markifact.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Delete Post

> Permanently deletes a Facebook Page post

Permanently deletes a Facebook Page post. Deleting a scheduled post cancels it before it goes live.

|                       |                        |
| --------------------- | ---------------------- |
| **App**               | Facebook               |
| **Operation ID**      | `facebook_delete_post` |
| **Type**              | Action                 |
| **Connection**        | `facebook` (required)  |
| **Credits per run**   | 1                      |
| **Requires approval** | Yes (write operation)  |

## Inputs

| Field     | Type                 | Required | Default | Description                                                                                                                                                                        |
| --------- | -------------------- | -------- | ------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `page`    | string or SelectItem | Yes      | -       | Select the Facebook Page the post belongs to, ask the user for it if not provided                                                                                                  |
| `post_id` | string               | No       | -       | ID of the post to delete, in the pageid\_postid format returned by facebook\_list\_posts and facebook\_publish\_post. Deleting a scheduled post cancels it. Deletion is permanent. |

### SelectItem

| Field   | Type   | Required | Default | Description                                                                                          |
| ------- | ------ | -------- | ------- | ---------------------------------------------------------------------------------------------------- |
| `value` | string | Yes      | -       | The value of the selectable item.                                                                    |
| `label` | string | Yes      | -       | The label of the selectable item, used for display purposes. If not provided, defaults to the value. |

## Output

**Type**: `Dict`

Returns the deleted post id and status.

**Fields**: `post_id`, `page_id`, `page_name`, `status`

**Example**:

```json theme={"dark"}
{
  "post_id": "1234567890_9876543210",
  "page_id": "1234567890",
  "page_name": "My Page",
  "status": "deleted"
}
```
