Database wipe
Description
Wipes all data from a database:
- All customer or seed profiles.
- 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
| Parameter | Type | Example | Required | Description |
|---|---|---|---|---|
| token | string | "abcdefghijklmnqrstuvwxyz" | Yes | API token |
| id | int | 1 | Yes | database ID |
| format | int | "json" | No | Response data format By default – json |
Request example
- JSON
- XML
{
"id": 1,
"token": "abcdefghijklmnqrstuvwxyz"
}
<xml>
<id>1</id>
<token>abcdefghijklmnqrstuvwxyz</token>
</xml>
Response example
- JSON
- XML
{
"data": {
"count_action": 0,
"count_profile": 0
},
"error": 0,
"error_text": "Successful operation"
}
<?xml version="1.0" encoding="UTF-8" ?>
<xml>
<data>
<count_action>0</count_action>
<count_profile>0</count_profile>
</data>
<error>0</error>
<error_text>Successful operation</error_text>
</xml>
Response parameters
| Parameter | Type | Description |
|---|---|---|
| data | JSON object | Data object |
| data.count_action | int | Profile actions wiped |
| data.count_profile | int | Profiles wiped |
| error | int | Error code |
| error_text | string | Error text |