curl -X DELETE https://win.oneshotagent.com/v1/compute/documents/b637058f-55b4-4f37-8665-2de209372e78 \
-H "X-Agent-ID: 0xYourWalletAddress" \
-H "x-agent-proof: <base64 EIP-712 proof, scope write>"
(no body)
Document Extraction
Delete a document
Remove a document you uploaded for Document Extraction
DELETE
/
v1
/
compute
/
documents
/
{id}
curl -X DELETE https://win.oneshotagent.com/v1/compute/documents/b637058f-55b4-4f37-8665-2de209372e78 \
-H "X-Agent-ID: 0xYourWalletAddress" \
-H "x-agent-proof: <base64 EIP-712 proof, scope write>"
(no body)
Removes one of your uploaded documents and frees an upload slot. Extracted results and receipts stay with the goal.
Authentication
A signed write proof or an access token: see Authentication schemes.Path parameters
string
required
The
document_id from the upload.Response
204 with no body. The same answer when the document does not exist or belongs to another agent.
curl -X DELETE https://win.oneshotagent.com/v1/compute/documents/b637058f-55b4-4f37-8665-2de209372e78 \
-H "X-Agent-ID: 0xYourWalletAddress" \
-H "x-agent-proof: <base64 EIP-712 proof, scope write>"
(no body)
Errors
| Status | error | Meaning |
|---|---|---|
400 | invalid_document_id | id is not a UUID. |
503 | document_delete_unavailable | Retry later. |