Deleting data using the UI is in Preview.
This page explains how to delete data from Datadog.
Delete non-Logs data
To delete data from a product other than Logs, contact Support with your request.
Delete Logs data
You can delete data from the Logs product using the UI.
Access deletion
To grant an account access to delete data, perform the following steps:
- Under Organizational Settings, go to Roles.
- Request or create a role that has the Delete Data permission for the product you wish to delete data from. For example, to delete data from Logs, request or create a role with the Logs Delete Data permission.
Start deletions
Deleted data can never be recovered, and deletions cannot be undone.
For Logs: Deletions cannot be scoped to a specific index, and deletions occur across Index, Flex Indexes, and Online Archives.
To delete data, perform the following steps:
- Under Organization Settings, go to Data Deletion.
- Select a product to delete from.
- Select a time frame to search across.
- Query for events within the time frame to delete.
- After the search shows the results you wish to delete, click the Delete button in the bottom right.
- You are prompted to confirm the deletion by selecting a checkbox and entering confirmation text. Click Confirm.
The deletion begins 2 hours after you confirm the request.
To validate a deletion, check the Deletion History tab, where you can see the status of deletions. You can also search deletions in Audit Trail using the string @asset.name:"Data Deletion"
.
Notes:
- Deletions start 2 hours after confirmation, and matching records that arrive during this period are included in deletion. In some cases, records arriving after the job has started might not be deleted because the deletion has already processed the time window that record occurred in.
- When deleting a record, data derived from that record is not deleted (for example, Metrics generated from Logs).
Stop deletions
Note: Deletions that are in progress can be canceled. However, this only prevents deletion of data that has not yet been processed for a particular job.
To cancel a deletion, click Cancel on an Upcoming or In Progress job.
Audit deletions
Deletions are logged in Deletion History for 90 days. They are also logged in Audit Trail alongside the requesting user’s details.