Skip to main content
DocsPlatformsAPI ReferenceAI & Integrations
Posts

Delete Post

Delete a post by its ID.

Endpoint

DELETE https://api.postpeer.dev/v1/posts/{postId}

Path Parameters

ParameterTypeDescription
postIdstringThe post ID to delete

Example

curl -X DELETE "https://api.postpeer.dev/v1/posts/post_abc123" \
  -H "x-access-key: YOUR_API_KEY"
import PostPeer from '@postpeer/node';

const client = new PostPeer();
await client.posts.delete({ path: { postId: 'post_abc123' } });
from postpeer import PostPeer

with PostPeer() as client:
    client.posts.delete(post_id="post_abc123")

Response

{
	"success": true
}

Status Codes

CodeMeaning
200Post deleted
404Post not found

On this page