Skip to main content

Deleting Profile Folder with Contents

Description: This method deletes the specified profile folder together with all profiles it contains. The profileFolderId value must match an existing folder in the specified workspace.

warning

This operation deletes both the folder and every profile inside it.

Request parameters:​

ParameterTypeFormatDefaultDescription
profileFolderIdstringuuid(required)Unique identifier of the profile folder to delete.
workspaceIdintegerint64-1The identifier of the workspace containing the profile folder. -1 means the default workspace.

Example request:​

DELETE
CURL:

curl 'http://localhost:8160/v1/profile_folders/123e4567-e89b-12d3-a456-426614174000/cascade?workspaceId=-1' \
--request DELETE \
--header 'Api-Token: YOUR_SECRET_TOKEN'

C#:

var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("http://localhost:8160/v1/profile_folders/123e4567-e89b-12d3-a456-426614174000/cascade?workspaceId=-1"),
Headers =
{
{ "Api-Token", "YOUR_SECRET_TOKEN" },
},
};
using (var response = await client.SendAsync(request))
{
response.EnsureSuccessStatusCode();
var body = await response.Content.ReadAsStringAsync();
Console.WriteLine(body);
}

Cube:

http://localhost:8160/v1/profile_folders/123e4567-e89b-12d3-a456-426614174000/cascade?workspaceId=-1

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

Response API:​

Response codeResult
200 OKOK
401 UnauthorizedUnauthorized
403 ForbiddenForbidden
409 ConflictResource state conflict
422 Unprocessable ContentThe request cannot be processed
423 LockedThe resource is locked
500 Internal Server ErrorInternal Server Error

Success Response (200 OK):

No response body.

Error Response:

{
"message": null
}