Skip to content

Deleting

A Variant that went out can be deleted from its Network: the Facebook Page post, the Instagram post, the Thread, the post on X, or the YouTube video.

Terminal window
curl -X POST https://app.pubrivo.com/api/variants/2f6c1d8e-4b3a-4e5f-9a8b-7c6d5e4f3a2b/delete \
-H "Authorization: Bearer $PUBRIVO_KEY" \
-H "Content-Type: application/json" \
-d '{}'

The answer is a 200 with the Post, and the Variant’s deletion reads requested. The worker then asks the Network, usually within seconds: deletion.status moves to deleting, then deleted with deletedAt, or failed with a failureReason.

Deleting is a permission of its own, posts:delete, and no key or app made before it has it.

  • An API key has it if Also allow deleting published posts was ticked when it was created.
  • An Authorized app has it if you allowed deleting when you approved it.

Without it the request gets a 403 with insufficient_scope.

  • The Variant still reads status: "published". That records what Pubrivo sent, and stays true. deletion beside it records that it was removed afterwards, who asked, and when.
  • Its counts read so far stay in metrics. Pubrivo reads no new counts, and keeps no new comments.
  • It still counts toward the month’s posting limit on your plan. Deleting gives nothing back.
  • A variant.deleted webhook is sent when the Network confirms it gone.

Read deletable on a published Variant before asking:

deletable Means
yes Pubrivo can delete it
reconnect Its Channel must be connected again first, to grant the permission or restore the Connection
not_yet The Network has not yet approved, or does not yet offer, the permission deleting needs
unsupported It can’t be deleted through Pubrivo. Delete it in the Network’s own app

TikTok has no way for an app to delete a post, so its Variants are always unsupported. An Instagram account connected before Pubrivo asked for the permission its delete needs reads reconnect until it is connected again.

Asking anyway is refused with the matching code: delete_unsupported, delete_not_available, needs_reconnect, channel_disconnected, or not_published for a Variant that has not gone out.

Deleting is safe to repeat. Asking again while it is under way, or once it is deleted, changes nothing. Asking again after it failed sends it back to the worker. A post the Network already lost, because someone deleted it there first, counts as deleted.

Each Variant is deleted on its own: in a Post that went to five Networks, delete one, some or all, and each settles separately.

The worker retries a rate limit or a Network’s own trouble for an hour, then marks it failed. Threads allows 100 deletes a day per account, and a YouTube delete costs 50 units of Pubrivo’s daily quota.