POST
/
delete_files_v2
curl --request POST \
  --url https://api.carbon.ai/delete_files_v2 \
  --header 'Content-Type: application/json' \
  --header 'authorization: <api-key>' \
  --data '{
  "filters": {
    "source": "GOOGLE_DRIVE",
    "name": "<string>",
    "tags": {},
    "tags_v2": {},
    "ids": [
      123
    ],
    "external_file_ids": [
      "<string>"
    ],
    "sync_statuses": [
      "DELAYED"
    ],
    "parent_file_ids": [
      123
    ],
    "organization_user_data_source_id": [
      123
    ],
    "embedding_generators": [
      "OPENAI"
    ],
    "root_files_only": true,
    "include_all_children": true,
    "non_synced_only": true,
    "request_ids": [
      "<string>"
    ]
  },
  "send_webhook": true
}'
{
  "success": true
}

Authorizations

authorization
string
headerrequired

token <token>, corresponds to temporary access tokens.

Body

application/json
filters
object
send_webhook
boolean
default: false

Response

200 - application/json
success
boolean
required