From 10bd79e6d930f181e30915f3bb53e486e48c1104 Mon Sep 17 00:00:00 2001 From: yaziine Date: Thu, 9 May 2024 13:45:05 +0400 Subject: [PATCH] add doc for delete recording --- .../docs/api/recording/recording_calls.mdx | 35 +++++++++++++++++++ 1 file changed, 35 insertions(+) diff --git a/docusaurus/video/docusaurus/docs/api/recording/recording_calls.mdx b/docusaurus/video/docusaurus/docs/api/recording/recording_calls.mdx index 79ddfeba..d2f6fdad 100644 --- a/docusaurus/video/docusaurus/docs/api/recording/recording_calls.mdx +++ b/docusaurus/video/docusaurus/docs/api/recording/recording_calls.mdx @@ -86,6 +86,41 @@ curl -X GET "https://video.stream-io-api.com/video/call/${CALL_TYPE}/${CALL_ID}/ +## 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: