For AI agents: a documentation index is available at the root level at /llms.txt and /llms-full.txt. Append /llms.txt to any URL for a page-level index, or .md for the markdown version of any page.
BlogLog InRequest Demo
HomeProductDevelopersSelf-HostingChangelog
HomeProductDevelopersSelf-HostingChangelog
  • Getting Started
    • Overview
  • Workflows SDK
    • Introduction
    • Installation
    • Core Concepts
    • Defining Control Flow
    • Configuration
    • Custom Docker Images
  • Client SDK
    • Introduction
    • Authentication
    • API Versioning
      • POSTUpload Document
      • GETRetrieve Document
      • GETList Documents
      • PATCHUpdate Document
      • DELDestroy
LogoLogo
BlogLog InRequest Demo
Client SDKDocuments

Destroy

Beta
DELETE
https://documents.vellum.ai/v1/documents/:id
DELETE
/v1/documents/:id
1import requests
2
3url = "https://documents.vellum.ai/v1/documents/id"
4
5headers = {"X-API-KEY": "<apiKey>"}
6
7response = requests.delete(url, headers=headers)
8
9print(response.json())
204No Content
1{}

Delete a Document, keying off of either its Vellum-generated ID or its external ID.

Was this page helpful?
Previous

Retrieve Uploaded File

Next
Built with

Authentication

X-API-KEYstring
API Key authentication via header

Path parameters

idstringRequiredformat: "^[^/]+$"

Headers

X-API-VersionstringOptional

Response

No response body