Delete an attachment
Agents API
Delete Attachment API
Delete an uploaded attachment by ID
DELETE
Delete an attachment
⚠️ Using our API via a dedicated deployment? Just replace
api.langdock.com with your deployment’s base URL: <deployment-url>/api/publicRequires an API key with the
KNOWLEDGE_FOLDER_API scope. You can create API Keys in your Workspace
settings.Request Format
Send the attachment ID in the request body as JSON.| Parameter | Type | Required | Description |
|---|---|---|---|
attachmentId | string | Yes | The UUID of the attachment to delete |
Response Format
Example
Error Handling
Langdock intentionally blocks browser-origin requests to protect your API key and ensure your applications remain secure. For more information, please see our guide on API Key Best Practices.
Authorizations
API key as Bearer token. Format "Bearer YOUR_API_KEY"
Body
application/json
The ID of the attachment to delete