Permanently deletes a single preset application package entry by its unique ID. The application package must exist or a 404 error is returned. Requires PRESET_APP_PACKAGES_GROUP_MANAGEMENT permission. The action is recorded in the audit log.
Form Params
applicationPackageIdintegerrequired
Unique numeric ID of the preset application package entry to delete
using var client = new HttpClient();
var request = new HttpRequestMessage(new HttpMethod("DELETE"), "https://YOUR-NETWORK-DOMAIN/rest-api/preset-app-package/delete.do");
request.Headers.Add("X-Api-Key", "YOUR_API_KEY");
request.Content = new FormUrlEncodedContent(new Dictionary<string, string> { ["applicationPackageId"] = "123" });
var response = await client.SendAsync(request);
Console.WriteLine(await response.Content.ReadAsStringAsync());