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": {
    "include_all_children": false,
    "non_synced_only": false
  },
  "send_webhook": false,
  "preserve_file_record": false
}'
{
  "success": true
}

Authorizations

authorization
string
header
required

token <token>, corresponds to temporary access tokens.

Body

application/json
filters
object
send_webhook
boolean
default:
false
preserve_file_record
boolean
default:
false

Whether or not to delete all data related to the file from the database, BUT to preserve the file metadata, allowing for resyncs. By default preserve_file_record is false, which means that all data related to the file as well as its metadata will be deleted. Note that even if preserve_file_record is true, raw files uploaded via the uploadfile endpoint still cannot be resynced.

Response

200
application/json
Successful Response
success
boolean
required