Skip to main content
POST
/
extractions
/
templates
/
{templateId}
/
sessions
/
batch
/
delete
Batch Delete
curl --request POST \
  --url https://api.raydocs.com/extractions/templates/{templateId}/sessions/batch/delete \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "session_ids": [
    "3c90c3cc-0d44-4b50-8888-8dd25736052a"
  ]
}
'

Authentication & Scope

Requires the sessions-write ability.
This action is irreversible. All documents and results in the specified sessions will be permanently deleted.

Request

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

{
  "session_ids": [
    "770e8400-e29b-41d4-a716-446655440001",
    "770e8400-e29b-41d4-a716-446655440002"
  ]
}

Path Parameters

ParameterTypeRequiredDescription
templateIduuidYesThe template ID

Body Parameters

ParameterTypeRequiredDescription
session_idsarrayYesArray of session IDs to delete

Response

204 No Content – Sessions successfully deleted.

Authorizations

Authorization
string
header
required

Personal Access Token

Path Parameters

templateId
string<uuid>
required

Body

application/json
session_ids
string<uuid>[]
required

Response

Deleted