Deleting Proxy Folder
Please read the Material Usage Rules on this site.
Description: This method deletes a proxy folder. The parameter proxyFolderId must match the existing folder within the specified workspace.
Request parameters:
| Parameter | Type | Format | Default | Description |
|---|---|---|---|---|
| proxyFolderId | string | uuid | (empty) | The identifier of the proxy folder to be deleted (Required) |
| workspaceId | integer | int64 | -1 | Workspace identifier. -1 means the default workspace. |
note
The ID of the proxy folder to delete should be specified inside curly braces { } in the URL path.
Example request:
DELETE
CURL:
curl 'http://localhost:8160/v1/proxy_folders/{proxyFolderId}?workspaceId=' \
--request DELETE \
--header 'Api-Token: YOUR_SECRET_TOKEN'
C#:
using System.Net.Http.Headers;
var client = new HttpClient();
var request = new HttpRequestMessage
{
Method = HttpMethod.Delete,
RequestUri = new Uri("http://localhost:8160/v1/proxy_folders/{proxyFolderId}?workspaceId="),
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/proxy_folders/{proxyFolderId}?workspaceId=

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

Response API:
| Response code | Result |
|---|---|
200 OK | Success |
500 Error | Internal Server Error |
Success Response (200 OK):
No content returned on successful deletion.
Error Response (500):
{
"message": null
}