# Zoom REST API to delete recording:: Not working

**URL:** <https://devforum.zoom.us/t/zoom-rest-api-to-delete-recording-not-working/6486>\
**Category:** API and Webhooks\
**Created:** [November 1, 2019, 7:05am UTC](https://devforum.zoom.us/t/zoom-rest-api-to-delete-recording-not-working/6486 "2019-11-01T07:05:34Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![selva.iyyamperumal](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/selva.iyyamperumal/32/50293_2.png) [@selva.iyyamperumal](https://devforum.zoom.us/u/selva.iyyamperumal)\
**Post date:** [November 1, 2019, 7:05am UTC](https://devforum.zoom.us/t/zoom-rest-api-to-delete-recording-not-working/6486/1 "2019-11-01T07:05:35Z")

</div>

Hi,  
We have been using following API to delete recorded meeting from Zoom cloud:

```auto
        var api = "https://api.zoom.us/v2/meetings/" + meeting_id + "/recordings";
        var auth = "Bearer " + zoomaccesstoken;

        request.delete( {
            url: api,
            headers : {
             "Authorization" : auth
            }

```

It stopped working from 25th October. We are getting complaints from our customers that the meeting has not been moved to trash.

Please help to find out actual issue.  
Thanks.  
Regards,  
Selva

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [November 1, 2019, 6:55pm UTC](https://devforum.zoom.us/t/zoom-rest-api-to-delete-recording-not-working/6486/2 "2019-11-01T18:55:34Z")

</div>

Hey @selva.iyyamperumal,

I just tried on my end and I was able to successfully delete a meeting recording.

Can you please share the error message?

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![selva.iyyamperumal](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/selva.iyyamperumal/32/50293_2.png) [@selva.iyyamperumal](https://devforum.zoom.us/u/selva.iyyamperumal)\
**Post date:** [November 2, 2019, 11:50am UTC](https://devforum.zoom.us/t/zoom-rest-api-to-delete-recording-not-working/6486/3 "2019-11-02T11:50:34Z")

</div>

Thanks Tom. We got following error. Not for all the customers though.  
2019-11-01 13:34:51 -07:00: Error from Zoom = Token might have expired for [email=cindy@cynthiahardwick.com](mailto:email=cindy@cynthiahardwick.com)  
2019-11-01 13:34:51 -07:00: zoom refresh url = [https://zoom.us/oauth/token?grant\_type=refresh\_token&refresh\_token=](https://zoom.us/oauth/token?grant_type=refresh_token&refresh_token=)

&redirect\_uri=https://connect.splain.io/gdrive/zoomcallback email= [cindy@cynthiahardwick.com](mailto:cindy@cynthiahardwick.com)  
2019-11-01 13:34:51 -07:00: { reason: ‘Invalid Token!’, error: ‘invalid\_request’ }  
2019-11-01 13:34:51 -07:00: FATAL - could not get zoom token

I have removed the refresh token. If you need, I will send it you.  
Thanks.

---

<div class="post-metadata">

**Author:** ![selva.iyyamperumal](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/selva.iyyamperumal/32/50293_2.png) [@selva.iyyamperumal](https://devforum.zoom.us/u/selva.iyyamperumal)\
**Post date:** [November 5, 2019, 5:20pm UTC](https://devforum.zoom.us/t/zoom-rest-api-to-delete-recording-not-working/6486/4 "2019-11-05T17:20:12Z")

</div>

Hi Tom,  
Any update? please share with us.

Thanks.  
Regards,  
Selva

---

<div class="post-metadata">

**Author:** ![michael\_p.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_p.zoom/32/18105_2.png) [@michael\_p.zoom](https://devforum.zoom.us/u/michael_p.zoom)\
**Post date:** [November 5, 2019, 8:42pm UTC](https://devforum.zoom.us/t/zoom-rest-api-to-delete-recording-not-working/6486/5 "2019-11-05T20:42:24Z")

</div>

Hi @selva.iyyamperumal,

Have you used the latest refresh token? You can Direct message me the refresh token that you have if needed.

---

<div class="post-metadata">

**Author:** ![michael\_p.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/michael_p.zoom/32/18105_2.png) [@michael\_p.zoom](https://devforum.zoom.us/u/michael_p.zoom)\
**Post date:** [November 6, 2019, 6:21pm UTC](https://devforum.zoom.us/t/zoom-rest-api-to-delete-recording-not-working/6486/6 "2019-11-06T18:21:34Z")

</div>

Hi @selva.iyyamperumal,

I’ve tested on our end. Looks like this refresh token is no longer valid. Can you verify that the refresh token that you used is the latest one that was used with access token? If you aren’t able to verify you may need to re-authenicate to get a new access & refresh token pair.

Thanks

---

<div class="post-metadata">

**Author:** ![selva.iyyamperumal](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/selva.iyyamperumal/32/50293_2.png) [@selva.iyyamperumal](https://devforum.zoom.us/u/selva.iyyamperumal)\
**Post date:** [November 7, 2019, 2:07am UTC](https://devforum.zoom.us/t/zoom-rest-api-to-delete-recording-not-working/6486/7 "2019-11-07T02:07:29Z")

</div>

Hi Michael,  
We always get the latest refresh token if it is not valid using the API. We have already asked the customer to re-authenticate both Zoom and her Google Drive. Hope that process work out.

Thanks for your help.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [November 7, 2019, 6:15am UTC](https://devforum.zoom.us/t/zoom-rest-api-to-delete-recording-not-working/6486/8 "2019-11-07T06:15:25Z")

</div>

Hey @selva.iyyamperumal,

Let us know if that fixes the issue! 🙂

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![selva.iyyamperumal](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/selva.iyyamperumal/32/50293_2.png) [@selva.iyyamperumal](https://devforum.zoom.us/u/selva.iyyamperumal)\
**Post date:** [November 8, 2019, 5:02pm UTC](https://devforum.zoom.us/t/zoom-rest-api-to-delete-recording-not-working/6486/9 "2019-11-08T17:02:59Z")

</div>

Hi Tom,  
More customers are reporting same issue: delete recording is not working. We are using-

```auto
        var api = "https://api.zoom.us/v2/meetings/" + meeting_id + "/recordings";
        var auth = "Bearer " + zoomaccesstoken;

        request.delete( {
            url: api,
            headers : {
             "Authorization" : auth
            }

```

We are not getting any error from Zoom server though. is there any issue with this code?

Please let us know if you need more info.  
Thanks.  
Regards,  
Selva

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [November 8, 2019, 5:25pm UTC](https://devforum.zoom.us/t/zoom-rest-api-to-delete-recording-not-working/6486/10 "2019-11-08T17:25:58Z")

</div>

Hey @selva.iyyamperumal,

Do you get any response? Since deleting files is async the delete could take a few minutes to complete.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![selva.iyyamperumal](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/selva.iyyamperumal/32/50293_2.png) [@selva.iyyamperumal](https://devforum.zoom.us/u/selva.iyyamperumal)\
**Post date:** [November 18, 2019, 6:13am UTC](https://devforum.zoom.us/t/zoom-rest-api-to-delete-recording-not-working/6486/11 "2019-11-18T06:13:15Z")

</div>

Hi Tom,  
We are not getting any error. But still some of the customers still reporting this issue. Please help us to find the cause. Please let us know if you need more info.

Thanks.  
Regards,  
Selva

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [November 18, 2019, 11:30pm UTC](https://devforum.zoom.us/t/zoom-rest-api-to-delete-recording-not-working/6486/12 "2019-11-18T23:30:20Z")

</div>

Hey @selva.iyyamperumal,

Can you private message me the `download_url` and meetingID for the meetings this is happening for.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![selva.iyyamperumal](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/selva.iyyamperumal/32/50293_2.png) [@selva.iyyamperumal](https://devforum.zoom.us/u/selva.iyyamperumal)\
**Post date:** [November 21, 2019, 2:37am UTC](https://devforum.zoom.us/t/zoom-rest-api-to-delete-recording-not-working/6486/13 "2019-11-21T02:37:48Z")

</div>

Hi Tom,

> > > . We have already asked the customer to re-authenticate both Zoom and her Google Drive. Hope that process work out.  
> > > This re-auth process solved the issue with that customer. Now we are not getting that refresh token error and the customer confirmed that it is working now.

We asked other affected customers (who didn’t get any error) to check again and get back to us. We will share it when they do.

Thanks for your help.  
Regards,  
Selva

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [November 21, 2019, 5:48pm UTC](https://devforum.zoom.us/t/zoom-rest-api-to-delete-recording-not-working/6486/14 "2019-11-21T17:48:11Z")

</div>

Hey @selva.iyyamperumal,

Thanks for the update!

-Tommy

---

<div class="post-metadata">

**Author:** ![selva.iyyamperumal](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/selva.iyyamperumal/32/50293_2.png) [@selva.iyyamperumal](https://devforum.zoom.us/u/selva.iyyamperumal)\
**Post date:** [December 9, 2019, 4:27pm UTC](https://devforum.zoom.us/t/zoom-rest-api-to-delete-recording-not-working/6486/15 "2019-12-09T16:27:18Z")

</div>

Hi Tom,  
The customer ( [cindy@cynthiahardwick.com](mailto:cindy@cynthiahardwick.com)) who did the re-authentication process has reported that some of her meeting recordings are not deleted in Zoom cloud. We are not getting any refresh token error for her now. We haven’t touched our code and using same code segment. We are wondering why it is not working sometimes. I will forward her email to you. Please let us know if you need more info.

Thanks.  
Regards,  
Selva

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [December 9, 2019, 10:40pm UTC](https://devforum.zoom.us/t/zoom-rest-api-to-delete-recording-not-working/6486/16 "2019-12-09T22:40:33Z")

</div>

Hey @selva.iyyamperumal,

Please see my reply to your private message. It looks like your delete requests are failing due to expired access\_tokens.

Thanks,  
Tommy

---

<div class="post-metadata">

**Author:** ![selva.iyyamperumal](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/selva.iyyamperumal/32/50293_2.png) [@selva.iyyamperumal](https://devforum.zoom.us/u/selva.iyyamperumal)\
**Post date:** [December 10, 2019, 6:50am UTC](https://devforum.zoom.us/t/zoom-rest-api-to-delete-recording-not-working/6486/17 "2019-12-10T06:50:18Z")

</div>

We are checking it Tom. If the access\_token is expired, we refresh it and call delete API. I have sent you the log in private msg.

Thanks.  
Selva

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [December 10, 2019, 5:20pm UTC](https://devforum.zoom.us/t/zoom-rest-api-to-delete-recording-not-working/6486/18 "2019-12-10T17:20:36Z")

</div>

Thanks for the logs and details @selva.iyyamperumal!

-Tommy

---

<div class="post-metadata">

**Author:** ![selva.iyyamperumal](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/selva.iyyamperumal/32/50293_2.png) [@selva.iyyamperumal](https://devforum.zoom.us/u/selva.iyyamperumal)\
**Post date:** [December 10, 2019, 5:47pm UTC](https://devforum.zoom.us/t/zoom-rest-api-to-delete-recording-not-working/6486/19 "2019-12-10T17:47:49Z")

</div>

Thanks Tom. Please check the private msg.

---

<div class="post-metadata">

**Author:** ![tommy](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/tommy/32/72769_2.png) [@tommy](https://devforum.zoom.us/u/tommy)\
**Post date:** [December 10, 2019, 7:59pm UTC](https://devforum.zoom.us/t/zoom-rest-api-to-delete-recording-not-working/6486/20 "2019-12-10T19:59:55Z")

</div>

Will do. Let’s move our discussion solely to private. (JRIA ZOOM-126551)

Thanks,  
Tommy

[Next page](https://devforum.zoom.us/t/zoom-rest-api-to-delete-recording-not-working/6486.md?page=2)
