data-deletion

Create, cancel, and track targeted Datadog logs deletion requests for GDPR compliance.

5|2|Updated Mar 9, 2026
One-click install
npx skills add https://github.com/lauhon/pi --skill data-deletion-lauhon
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: data-deletion
Source: https://github.com/lauhon/pi/tree/main/skills/data-deletion
Command: npx skills add https://github.com/lauhon/pi --skill data-deletion-lauhon

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve? Organizations subject to GDPR, CCPA, and similar privacy regulations must fulfill "right to be forgotten" requests by permanently removing specific user data from Datadog logs, which is difficult to do precisely without a controlled, auditable process. ## Core Features & Use Cases - Targeted Deletion Requests: Create deletion requests for logs matching specific Datadog search queries, time ranges, and indexes via the Data Deletion API. - Lifecycle Management: List, filter, monitor, and cancel pending deletion requests with full status tracking from pending through completion. - Compliance Audit Trail: Track who created each request, when, and how many records were deleted for regulatory reporting. - Use Case: A user submits a GDPR erasure request for user_id 12345. You create a logs deletion request scoped to that user across all indexes, monitor its status to completion, and export the audit record for compliance documentation. ## Quick Start Ask the agent to create a Datadog logs deletion request for a specific user ID over a given time range and confirm the scope before submitting.

Frequently Asked Questions about data-deletion

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I delete logs for a specific user in Datadog?

Create a deletion request via POST /api/v2/deletion/data/logs with a query like {"user_id": "12345"}, a from/to time range in milliseconds, and a displayed_total count. The request enters a pending state and executes during off-peak hours.

How do I cancel a Datadog data deletion request?

Send PUT /api/v2/deletion/requests/{id}/cancel with your API and application keys. Cancellation only works while the request is in pending or in_progress status; once it reaches deleting status it cannot be stopped.

What permissions are required for Datadog data deletion?

You need the logs_delete_data permission to create, cancel, or view logs deletion requests. Users can only delete data they have access to, and requests are scoped to the organization.

Can deleted Datadog logs be recovered after deletion completes?

No. Once a deletion request reaches completed status, the data is permanently deleted and cannot be undone. There is a 10-day soft deletion window during the in_progress phase before permanent deletion triggers.

Why does my deletion request fail with MAX_CONCURRENT_REQUESTS?

The organization already has 5 or more non-finished deletion requests, which is the concurrency limit. Wait for existing requests to complete before creating new ones.

What products does the Datadog Data Deletion API support?

Currently only logs are supported as a deletion product. The API is in Preview, so you may need to contact Datadog support for access.