Delete a certain page that belongs to a certain agent.

Delete a specific page within an agent (formerly known as project) based on its unique projectId and pageId.

This endpoint allows you to remove a particular page from the agent, permanently deleting its associated context.

Here is an example to delete a certain page: API SDK.

Difference between Page and Source?

When a new connection is added (such as a sitemap, Google Drive, or SharePoint), each becomes its own source.

For example, if you add two sitemaps, two separate sitemap sources are created.

However, file uploads work a bit differently. All uploaded files are grouped under a single source, and an agent (or project) can only have one file upload source. Each source can contain multiple documents, referred to as "pages" in our system.

So if you're trying to delete a specific file, you need to target the page ID rather than the source ID. Attempting to delete a source would remove all associated files.

To delete an individual file (page), please use this API endpoint: Delete Page API. Once you confirm the correct project and page IDs, the API call should work as expected.

"Action is unauthorized"

Regarding the “action is unauthorized” message, this error maybe triggered when the wrong endpoint is used like attempting to delete a page using the source deletion API.

Language
Credentials
Bearer
JWT
Click Try It! to start a request and see the response here!