Posts
Delete Post
Delete a post by its ID.
Endpoint
DELETE https://api.postpeer.dev/v1/posts/{postId}Path Parameters
| Parameter | Type | Description |
|---|---|---|
postId | string | The 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
| Code | Meaning |
|---|---|
200 | Post deleted |
404 | Post not found |