DELETE
/
documents
/
{org_id}
/
{flow_id}
/
{node_id}
/
{user_id}
import requests
import json

url = "https://api.stack-ai.com/documents/{org_id}/{flow_id}/{node_id}/{user_id}"
headers = {
"Authorization": "Bearer <your-private-key>",
"Content-Type": "application/json"
}

params = {'filename': filename}

response = requests.delete(url, headers=headers, params=params)

{}
import requests
import json

url = "https://api.stack-ai.com/documents/{org_id}/{flow_id}/{node_id}/{user_id}"
headers = {
"Authorization": "Bearer <your-private-key>",
"Content-Type": "application/json"
}

params = {'filename': filename}

response = requests.delete(url, headers=headers, params=params)

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Path Parameters

org_id
string
required

The organization ID

user_id
string
required

The user ID

flow_id
string
required

The flow ID of the document

node_id
string
required

The node ID of the document

Query Parameters

filename
string
required

Response

200
application/json
Successful Response
{key}
boolean