Delete Analytics Collection

Delete Analytics Collection

This functionality is in beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features.

New API reference

For the most up-to-date API details, refer to Behavioral analytics APIs.

Removes a Behavioral Analytics Collection and its associated data stream.

Request

DELETE _application/analytics/<name>

Prerequisites

Requires the manage_behavioral_analytics cluster privilege.

Path parameters

<name>

(Required, string)

Response codes

400

The name was not provided.

404 (Missing resources)

No Analytics Collection matching name could be found.

Examples

The following example deletes the Analytics Collection named my_analytics_collection:

  1. resp = client.search_application.delete_behavioral_analytics(
  2. name="my_analytics_collection",
  3. )
  4. print(resp)
  1. const response = await client.searchApplication.deleteBehavioralAnalytics({
  2. name: "my_analytics_collection",
  3. });
  4. console.log(response);
  1. DELETE _application/analytics/my_analytics_collection/