ricardorodrigues-ca / zoom-recording-downloader

Downloads and organizes all cloud recordings from your Zoom Business account
MIT License
127 stars 65 forks source link

Add an option for automatic recording deletion from the cloud after a successful download #24

Open vdv2013 opened 2 years ago

vdv2013 commented 2 years ago

One important use-case for mass download of recordings is to free some space in the zoom cloud storage. But there is not delete function right now...

This could be added easily with something like this:

def API_ENDPOINT_DELETE_RECORDING(meeting_id):
    API_ENDPOINT = 'https://api.zoom.us/v2/meetings/' + meeting_id + '/recordings?action=trash'
    return API_ENDPOINT

as well as

def delete_cloud_recording(meeting_id):
    response = requests.delete(url=API_ENDPOINT_DELETE_RECORDING(
        meeting_id), headers=AUTHORIZATION_HEADER)

    if not response.ok:
        print(response.content)

    return response.ok
Gregistopal commented 1 year ago

Do you know of a way the completed-downloads file could be used to go through and delete all recordings that have been downloaded?

ggatto commented 1 year ago

Not sure how to do it, but would be great if this option exists, I am doing it manually. Thanks.

the zoom doc https://marketplace.zoom.us/docs/api-reference/zoom-api/methods/#operation/recordingDelete have this endpoint, I think the script has all information need it, we just need to be sure we want to delete a recording.

But requires OAuth, so a more extensive modification is needed to the script.

vickysirwani commented 12 months ago

This would certainly be helpful.