Permanently delete profiles from wastebasket
Please read the Material Usage Rules on this site.
Description: This method permanently deletes multiple browser profiles from the wastebasket.
warning
The profiles and their data cannot be recovered after this operation.
Request parameters:
| Parameter | Type | Format | Default | Description |
|---|---|---|---|---|
| workspaceId | integer | int64 | -1 | Workspace identifier. -1 means the default workspace. |
The request body is a JSON array of profile identifiers in UUID format.
Request example:
DELETE
CURL:
curl 'http://localhost:8160/v1/profiles/wastebasket/delete_bulk?workspaceId=-1' \
--request DELETE \
--header 'Api-Token: YOUR_SECRET_TOKEN' \
--header 'Content-Type: application/json' \
--data '["123e4567-e89b-12d3-a456-426614174000","323e4567-e89b-12d3-a456-426614174000"]'
C#:
using System.Text;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("http://localhost:8160/v1/profiles/wastebasket/delete_bulk?workspaceId=-1"),
Headers =
{
{ "Api-Token", "YOUR_SECRET_TOKEN" },
},
};
request.Content = new StringContent("[\"123e4567-e89b-12d3-a456-426614174000\",\"323e4567-e89b-12d3-a456-426614174000\"]", Encoding.UTF8, "application/json");
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}
Cube:
http://localhost:8160/v1/profiles/wastebasket/delete_bulk?workspaceId=-1
API response:
| Response code | Result |
|---|---|
200 OK | Profiles deleted; response body is empty |
401 Unauthorized | Unauthorized |
403 Forbidden | Access forbidden |
500 Internal Server Error | Internal server error |
Error response (500):
{
"message": null
}