provider persons POST
/api/environments/{environment_id}/persons/bulk_delete/ @utdk/posthog
/api/environments/{environment_id}/persons/bulk_delete/ environments_persons_bulk_delete_create
This endpoint allows you to bulk delete persons, either by the PostHog person IDs or by distinct IDs. You can pass in a maximum of 1000 IDs per call. Only events captured before the request will be deleted.
- 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.environmentsPersonsBulkDeleteCreate({
"delete_events": false,
"delete_recordings": false,
"keep_person": false
})