Skip to main content
DELETE
/
extractions
/
templates
/
{templateId}
Delete Template
curl --request DELETE \
  --url https://api.raydocs.com/extractions/templates/{templateId} \
  --header 'Authorization: Bearer <token>'

Authentication & Scope

Requires the templates-write ability.
Deleting a template will also delete all associated sessions, documents, and results.

Request

DELETE /extractions/templates/550e8400-e29b-41d4-a716-446655440000 HTTP/1.1
Host: api.raydocs.com
Authorization: Bearer <token>

Path Parameters

ParameterTypeRequiredDescription
templateIduuidYesThe template ID

Response

204 No Content – Template successfully deleted. 404 Not Found – Template does not exist or you don’t have access.

Authorizations

Authorization
string
header
required

Personal Access Token created from the Raydocs dashboard. Include in the Authorization header: Bearer <your_token> See API Keys for token creation and management.

Path Parameters

templateId
string<uuid>
required

Response

Deleted