provider persons POST
/api/projects/{project_id}/persons/bulk_delete/ @utdk/posthog
/api/projects/{project_id}/persons/bulk_delete/ 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.
- format query
- enum: csv, json
- project_id path required
- Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.
- string
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.personsBulkDeleteCreate({
"delete_events": false,
"delete_recordings": false,
"keep_person": false
})