---
title: "Delete webpage context pages."
method: DELETE
path: "/api/v1/projects/{projectId}/contextual-rag/pages"
tags: ["Webpage Awareness"]
---

# Delete webpage context pages.

`DELETE /api/v1/projects/{projectId}/contextual-rag/pages`

## Request

- Base URL: `https://app.customgpt.ai`
- URL: `https://app.customgpt.ai/api/v1/projects/{projectId}/contextual-rag/pages`
- Auth: HTTP bearer
- TypeScript: <https://skmtc.dev/poll-the-people/apis/customgpt-ai/docs/api/v1/projects/:projectId/contextual-rag/pages/delete.ts> (a function with typed inputs; its response is checked against the schema)

Deletes webpage context entries for an agent. Pass `page_ids` to delete specific pages,
or omit the body to delete all pages for the agent.
Requires the **Webpage Awareness** tool to be enabled on the agent.

## Path parameters

- `projectId` integer, required

## Request body

- object
  - `page_ids` string[]: List of page IDs to delete. If omitted, all pages for the agent are deleted.

## Response `200`

Confirmation of deleted page context entries.

- object
  - `status` 'error' | 'success': The status of the response
  - `data` object
    - `deleted_count` integer: Number of page context entries deleted.

## Other responses

- `401`: API Token is either missing or invalid
- `403`: Webpage Awareness tool must be enabled to use this endpoint.
- `404`: Agent not found
- `429`: Too many requests. You have exceeded your API rate limit.
- `500`: Internal Server Error

## Changes

- **2026-11-03** `77aab4354382`: 1 info
  - endpoint added

[Operation history](https://skmtc.dev/poll-the-people/apis/customgpt-ai/changes/api/v1/projects/:projectId/contextual-rag/pages/delete.md)

---

[API](https://skmtc.dev/poll-the-people/apis/customgpt-ai.md) - [All operations](https://skmtc.dev/poll-the-people/apis/customgpt-ai/llms.txt) - [OpenAPI document](https://skmtc.dev/poll-the-people/apis/customgpt-ai/revisions/77aab4354382?raw)
