Try it free

Permanently delete a document

  • Latest Dynatrace
  • Reference
  • Published Oct 13, 2026

Move a document to the trash in Dynatrace with the Document API, using optimistic locking to protect against accidental deletion.

DELETESaaShttps://{your-environment-id}.apps.dynatrace.com/platform/document/v1/documents/{id}

Overview

You pass the document id and the required optimistic-locking-version query parameter, and can also use admin-access. The response confirms the document was deleted, and the document becomes inaccessible until restored from the trash.

Authentication

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

Parameters

ParameterTypeDescriptionInRequired
idstring

System-generated or user-given id of a document.

pathRequired
optimistic-locking-versionstring

To protect users from accidental overrides, the current version of the document must match the optimistic locking version parameter - otherwise, this request will fail and the entity is left unchanged.

queryRequired
admin-accessboolean

Indicates whether the operation should be performed with elevated permissions - additionally requires document:documents:admin.

If provided, the user effectively operates as owner of all documents. This isn't supported for ready-made documents.

queryOptional

Response

Response codes

CodeDescription
204-
400-
401-
403-
404-
409-
500-
503-
default-
Related tags
Platform APIDynatrace Platform