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
Code snippet
Updates live as you fill in the form above.
TypeScript
import posthog from '@utdk/posthog';
await posthog.environmentsInsightsBulkDeleteCreate()