provider replaysession_recordings POST /api/projects/{project_id}/session_recordings/bulk_delete/
@utdk/posthog /api/projects/{project_id}/session_recordings/bulk_delete/
session_recordings_bulk_delete_create
Delete a batch of session recordings by session ID. Deletion is permanent and cannot be undone. IDs that don't match an existing recording are skipped and counted in `total_requested` but not `deleted_count`.
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
sessionRecordingsBulkDeleteCreate
POST/api/projects/{project_id}/session_recordings/bulk_delete/
Delete a batch of session recordings by session ID. Deletion is permanent and cannot be undone. IDs that don't match an existing recording are skipped and counted in `total_requested` but not `deleted_count`.

Parameters

required

Project ID of the project you're trying to access. To find the ID of the project, make a call to /api/projects/.

Input

required

Session IDs of the recordings to delete (max 100 per call).

Earliest start time of the recordings, as an ISO date or a relative offset like '-30d'. Providing this narrows the lookup and speeds up the request; defaults to the project's recording retention period.

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.sessionRecordingsBulkDeleteCreate()