Skip to main content

Database wipe

Description

Wipes all data from a database:

  1. All customer or seed profiles.
  2. All associated data except statistics.

To use this request you need to reconfigure main.json file in config directory:

{
"ALLOW_DATA_WIPE": true
}

Request URL

Method: POST

https://example.com/api/v1.1/databases/wipe

Request parameters

ParameterTypeExampleRequiredDescription
tokenstring"abcdefghijklmnqrstuvwxyz"YesAPI token
idint1Yesdatabase ID
formatint"json"NoResponse data format
By default – json

Request example

{
"id": 1,
"token": "abcdefghijklmnqrstuvwxyz"
}

Response example

{
"data": {
"count_action": 0,
"count_profile": 0
},
"error": 0,
"error_text": "Successful operation"
}

Response parameters

ParameterTypeDescription
dataJSON objectData object
data.count_actionintProfile actions wiped
data.count_profileintProfiles wiped
errorintError code
error_textstringError text