Try it free

Delete a filter segment

  • Latest Dynatrace
  • Reference
  • Published Oct 13, 2026

Delete a filter segment in Dynatrace with the Grail Filter Segments API by UID and remove it from the environment for all users.

DELETESaaShttps://{your-environment-id}.apps.dynatrace.com/v1/filter-segments/{filterSegmentUid}

Overview

You provide the filterSegmentUid path parameter to identify the filter segment to remove. The operation deletes it from the environment for all users and returns no content.

Authentication

To execute this request, you need a platform token or OAuth access token with storage:filter-segments:delete scope. To learn how to obtain and use it, see Tokens and authentication.

Parameters

ParameterTypeDescriptionInRequired
filterSegmentUidstring

UID of the filter-segment

pathRequired

Response

Response codes

CodeTypeDescription
204-

Filter-segment successfully deleted.

400ErrorEnvelope

bad request

401ErrorEnvelope

unauthorized

403ErrorEnvelope

missing permissions

404ErrorEnvelope

Not found: the server cannot find the requested filter-segment.

Response body objects

The ErrorEnvelope object

ElementTypeDescription
errorExceptionalReturn-

The ExceptionalReturn object

ElementTypeDescription
codeinteger-
errorDetails(CustomValidationErrorInfo | InvalidAuditEventsErrorInfo | MediaTypeErrorInfo | ParameterErrorInfo | ProxyErrorInfo | QueryFrontendRawErrorInfo | RequestBodyErrorInfo)[]-
messagestring-

The CustomValidationErrorInfo object

The ErrorInfo object

ElementTypeDescription
messagestring-

The InvalidAuditEventsErrorInfo object

The MediaTypeErrorInfo object

The ParameterErrorInfo object

The ProxyErrorInfo object

The QueryFrontendRawErrorInfo object

The RequestBodyErrorInfo object

Response body JSON models

{
"error": {
"code": 400,
"message": "Missing request header",
"errorDetails": [
{
"type": "parameter",
"parameterDescriptor": "Dt-Tenant",
"message": "is required"
}
]
}
}
Related tags
Platform APIDynatrace Platform