provider insights POST /api/environments/{environment_id}/insights/bulk_delete/
@utdk/posthog /api/environments/{environment_id}/insights/bulk_delete/
environments_insights_bulk_delete_create
Soft-delete insights in bulk by ID. Mirrors the single-insight delete: sets deleted=True, soft-deletes the insights' dashboard tiles, and removes their linked alerts. Insights the requester cannot edit are skipped and reported in `skipped`. Reversible via the bulk_restore endpoint.
environment_id path required
Deprecated. Use /api/projects/{project_id}/ instead.
string
format query
enum: csv, json

Try it

Authentication
Configure credentials for PostHog API
environmentsInsightsBulkDeleteCreate
POST/api/environments/{environment_id}/insights/bulk_delete/
Soft-delete insights in bulk by ID. Mirrors the single-insight delete: sets deleted=True, soft-deletes the insights' dashboard tiles, and removes their linked alerts. Insights the requester cannot edit are skipped and reported in `skipped`. Reversible via the bulk_restore endpoint.

Parameters

required

Deprecated. Use /api/projects/{project_id}/ instead.

Input

required

Insight IDs to soft-delete (or restore). At most 1000 ids per request. Soft-deleted insights can be brought back via the bulk_restore endpoint.

Configure credentials above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import posthog from '@utdk/posthog';

await posthog.environmentsInsightsBulkDeleteCreate()