ParrotPosterParrotPoster
Getting started
Accounts
Posts
Automation
API
Site
  • English
  • Русский
Getting started
Accounts
Posts
Automation
API
Site
  • English
  • Русский
  • Introduction
  • Quick start
  • API methods

    • Authentication
    • Social accounts
    • Posts

      • Posts
      • Post object
      • Getting posts
      • Creating a post
      • Updating a post
      • Deleting a post
  • Errors

Deleting a post

The deletePost mutation deletes a post. It requires a token with write access and an active plan. You can delete only your own posts.

A post is not erased right away: it is marked as deleted and goes to the Trash in the web app (from there it can be restored if it was never published, or deleted permanently; posts stay in the trash for 30 days). For a published post, deletion also starts removing the publications from social networks where this is supported; such a post can no longer be restored.

mutation {
  deletePost(id: "post_id") {
    id
  }
}

Parameters

ArgumentTypeDescription
idID!ID of the post to delete

Response

The mutation returns a Post in which only the id field is filled — the ID of the deleted post. Other fields will be empty, so request only id.

Deleted posts are not shown in the post list by default; to see the trash, use the deleted: true filter (getting posts).

Edit on GitHub
Last updated: 10/10/26, 2:44 AM
Prev
Updating a post