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
}

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