---
title: "Delete fragment"
method: DELETE
path: "/papi/project/{projectId}/fragments/{name}"
tags: ["Fragments"]
---

# Delete fragment

`DELETE /papi/project/{projectId}/fragments/{name}`

## Request

- Base URL: `https://api.websitepublisher.ai`
- URL: `https://api.websitepublisher.ai/papi/project/{projectId}/fragments/{name}`
- Auth: OAuth 2 (authorization code, authorization URL `https://api.websitepublisher.ai/dapi/oauth/authorize`, token URL `https://api.websitepublisher.ai/dapi/oauth/token`, scopes: `read`, `write`)

Delete a fragment. Pages using its include_tag render empty in its place.

## Path parameters

- `projectId` integer, required
- `name` string, required

## Response `200`

Fragment deleted

## Other responses

- `404`: Fragment not found

---

[API](https://skmtc.dev/websitepublisher/apis/websitepublisher-ai-api.md) · [All operations](https://skmtc.dev/websitepublisher/apis/websitepublisher-ai-api/llms.txt) · [OpenAPI document](https://skmtc.dev/websitepublisher/apis/websitepublisher-ai-api/revisions/e9df1ef10551?raw)
