diff --git a/docusaurus/video/docusaurus/docs/api/recording/recording_calls.mdx b/docusaurus/video/docusaurus/docs/api/recording/recording_calls.mdx index 41cb090e..cd021342 100644 --- a/docusaurus/video/docusaurus/docs/api/recording/recording_calls.mdx +++ b/docusaurus/video/docusaurus/docs/api/recording/recording_calls.mdx @@ -88,6 +88,41 @@ curl "https://video.stream-io-api.com/video/call/${CALL_TYPE}/${CALL_ID}/recordi +## Delete call recording + +This endpoint allows to delete call recording. +Please note that recordings will be deleted only if they are stored on Stream side (default). + +An error will be returned if: + - the recording doesn't exist + - the recording is not stored on Stream S3 bucket + + + + +```js +call.deleteRecording(sessionID, filename); +``` + + + + +```py +call.delete_recording(sessionID, filename) +``` + + + + +```bash +curl -X DELETE "https://video.stream-io-api.com/video/call/${CALL_TYPE}/${CALL_ID}/${SESSION_ID}/${FILENAME}?api_key=${API_KEY}" \ + -H "Authorization: ${JWT_TOKEN}" \ + -H "stream-auth-type: jwt" +``` + + + + ## Events These events are sent to users connected to the call and your webhook/SQS: