Skip to main content
DELETE
/
v1
/
posts
/
slug
/
{slug}
Delete a post by slug
import { ParagraphAPI } from "@paragraph-com/sdk"

const api = new ParagraphAPI({ apiKey: "your-api-key" })
await api.posts.delete({ slug: "my-first-post" })
{
  "success": true
}

Documentation Index

Fetch the complete documentation index at: https://paragraph.com/docs/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

API key for authenticating protected endpoints. Pass as Bearer token in Authorization header.

Path Parameters

slug
string
required

URL-friendly identifier of the post to delete

Required string length: 1 - 256

Body

application/json

Body

The body is of type object.

Response

Post deleted successfully

success
enum<boolean>
required

Whether the deletion succeeded

Available options:
true