Skip to main content

Deleting Browser Profiles (Bulk)

Description: This method is used to delete several existing browser profiles at once.

Request parameters:

ParameterTypeFormatDefaultDescription
workspaceIdintegerint64-1Workspace identifier. -1 means the default workspace.
bodyJSON-ArrayUUID profilesTarget Browser Profile IDs. Example: ["uuid1", "uuid2"]
note

The list of profiles to delete should be specified as an array in the request body using the following format:

[
"884d8f8d-9a4e-4b1e-9dd3-a028d3ae419b",
"d24eba34-12d6-4412-ab20-80fae618c264"
]

Example request:

DELETE
CURL:

curl 'http://localhost:8160/v1/profiles/delete_bulk' \
--request DELETE \
--header 'Content-Type: application/json' \
--header 'Api-Token: YOUR_SECRET_TOKEN' \
--data '[
"uuid1",
"uuid2"
]'

C#:

using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("http://localhost:8160/v1/profiles/delete_bulk"),
Headers =
{
{ "Api-Token", "YOUR_SECRET_TOKEN" },
},
Content = new StringContent("[\n " +
"\"uuid1\"," +
"\"uuid2\"," +
"\n]")
{
Headers =
{
ContentType = new MediaTypeHeaderValue("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/{profileId}?workspaceId=-1

Data:
["uuid1", "uuid2"]

Additionally:
User-Agent: {-Profile.UserAgent-}
Api-Token: Token from UserArea2.

Response API:

Response codeResult
200 OKSuccess
500 ErrorInternal Server Error

Success Response (200 OK):

No content returned on successful deletion.

Error Response (500):

{
"message": null
}