# Deleting a meeting

**URL:** <https://devforum.zoom.us/t/deleting-a-meeting/77107>\
**Category:** Meetings\
**Created:** [October 7, 2022, 2:22pm UTC](https://devforum.zoom.us/t/deleting-a-meeting/77107 "2022-10-07T14:22:54Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![rich](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rich/32/1029_2.png) [@rich](https://devforum.zoom.us/u/rich)\
**Post date:** [October 7, 2022, 2:22pm UTC](https://devforum.zoom.us/t/deleting-a-meeting/77107/1 "2022-10-07T14:22:54Z")

</div>

**API Endpoint(s) and/or Zoom API Event(s)**

Zoom Delete Meeting

**Description**

OK I am trying to use the delete function of the API. When I call the delete function , I just get the meeting details back, no status code, no error, and the meeting remains. Also in the request params it asks for an occurrence\_id , which on the meetings we’ve created , we don’t have.

there is no error message or error code returned - in the request type we pass ‘delete’, but don’t I need an occurrence\_id to pass to the API ? Should I get one when creating a meeting - the Api documents seem to suggest the occurrence\_id is only for webinars.

It seems odd to not send an occurrence\_id as when deleting a meeting, how would Zoom know what to do if the meeting has multiple occurrences?

thanks

Rich 🙂

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [October 7, 2022, 5:30pm UTC](https://devforum.zoom.us/t/deleting-a-meeting/77107/2 "2022-10-07T17:30:58Z")

</div>

Hi, @rich,

Welcome to the Developer Forum – I am happy to help! First, can you share a screenshot or snippet of the delete API response are seeing? Please be sure to remove any PII from the response before posting.

[https://marketplace.zoom.us/docs/api-reference/zoom-api/methods/#operation/meetingDelete](https://marketplace.zoom.us/docs/api-reference/zoom-api/methods/#operation/meetingDelete)

> [@rich](#):
>
> there is no error message or error code returned - in the request type we pass ‘delete’, but don’t I need an occurrence\_id to pass to the API? Should I get one when creating a meeting - the Api documents seem to suggest the occurrence\_id is only for webinars.

Should you get an occurrence\_id returned in the response is the meeting/webinar has multiple occurrences? Does the meeting/webinar you are testing with have multiple occurrences?

---

<div class="post-metadata">

**Author:** ![rich](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rich/32/1029_2.png) [@rich](https://devforum.zoom.us/u/rich)\
**Post date:** [October 10, 2022, 9:24am UTC](https://devforum.zoom.us/t/deleting-a-meeting/77107/3 "2022-10-10T09:24:45Z")

</div>

OK so this is what I get back when I call the DELETE function on the API

array(22) {  
[“uuid”]=\>  
string(24) "\*\*\*\*\*\*\*\*\*\*\*\*\* blanked out "  
[“id”]=\>  
int(87029473027)  
[“host\_id”]=\>  
string(22) “9LHFs1X3Qdij6pfZ\_zqBsQ”  
[“host\_email”]=\>  
string(20) “[blank@blank.com](mailto:blank@blank.com)”  
[“assistant\_id”]=\>  
string(0) “”  
[“topic”]=\>  
string(4) “test”  
[“type”]=\>  
int(8)  
[“status”]=\>  
string(7) “waiting”  
[“timezone”]=\>  
string(13) “Europe/London”  
[“agenda”]=\>  
string(0) “”  
[“created\_at”]=\>  
string(20) “2022-10-06T12:28:02Z”  
[“start\_url”]=\>  
string(461) “[Launch Meeting - Zoom](https://thetherapy-space.zoom.us/s/87029473027?zak=eyJ0eXAiOiJKV1QiLCJzdiI6IjAwMDAwMSIsInptX3NrbSI6InptX28ybSIsImFsZyI6IkhTMjU2In0.eyJhdWQiOiJjbGllbnRzbSIsInVpZCI6IjlMSEZzMVgzUWRpajZwZlpfenFCc1EiLCJpc3MiOiJ3ZWIiLCJzayI6IjE0ODk4OTk3MjU0NzE2MzA1NjkiLCJzdHkiOjEwMCwid2NkIjoidXMwNiIsImNsdCI6MCwibW51bSI6Ijg3MDI5NDczMDI3IiwiZXhwIjoxNjY1NDAwODMxLCJpYXQiOjE2NjUzOTM2MzEsImFpZCI6InAxZVNtdVNNUmVhNkR3RnB6M2xjS3ciLCJjaWQiOiIifQ.rcQhZ8KxbRK35TZG_AxOWW5SJkhD9HjjXzSOINWFMIM)”  
[“join\_url”]=\>  
string(83) “[Meeting Registration - Zoom](https://thetherapy-space.zoom.us/j/87029473027?pwd=Z3FXeVJRZ0tBMUxlYmtwY05vWXV0QT09)”  
[“registration\_url”]=\>  
string(86) “[Meeting Registration - Zoom](https://thetherapy-space.zoom.us/meeting/register/tZMtdeCsqTgqGNOK4ZMgfknMOSS7roZgobEN)”  
[“password”]=\>  
string(10) “_**$"  
[“h323\_password”]=\>  
string(10) "**_”  
[“pstn\_password”]=\>  
string(10) “_**"  
[“encrypted\_password”]=\>  
string(32) "**_”  
[“occurrences”]=\>  
array(2) {  
[0]=\>  
array(4) {  
[“occurrence\_id”]=\>  
string(13) “1665990000000”  
[“start\_time”]=\>  
string(20) “2022-10-17T07:00:00Z”  
[“duration”]=\>  
int(60)  
[“status”]=\>  
string(9) “available”  
}  
[1]=\>  
array(4) {  
[“occurrence\_id”]=\>  
string(13) “1666594800000”  
[“start\_time”]=\>  
string(20) “2022-10-24T07:00:00Z”  
[“duration”]=\>  
int(60)  
[“status”]=\>  
string(9) “available”  
}  
}  
[“settings”]=\>  
array(39) {  
[“host\_video”]=\>  
bool(true)  
[“participant\_video”]=\>  
bool(false)  
[“cn\_meeting”]=\>  
bool(false)  
[“in\_meeting”]=\>  
bool(false)  
[“join\_before\_host”]=\>  
bool(true)  
[“jbh\_time”]=\>  
int(0)  
[“mute\_upon\_entry”]=\>  
bool(true)  
[“watermark”]=\>  
bool(false)  
[“use\_pmi”]=\>  
bool(false)  
[“approval\_type”]=\>  
int(0)  
[“registration\_type”]=\>  
int(1)  
[“audio”]=\>  
string(4) “both”  
[“auto\_recording”]=\>  
string(4) “none”  
[“enforce\_login”]=\>  
bool(false)  
[“enforce\_login\_domains”]=\>  
string(0) “”  
[“alternative\_hosts”]=\>  
string(0) “”  
[“alternative\_host\_update\_polls”]=\>  
bool(false)  
[“close\_registration”]=\>  
bool(true)  
[“show\_share\_button”]=\>  
bool(true)  
[“allow\_multiple\_devices”]=\>  
bool(true)  
[“registrants\_confirmation\_email”]=\>  
bool(false)  
[“waiting\_room”]=\>  
bool(true)  
[“request\_permission\_to\_unmute\_participants”]=\>  
bool(false)  
[“global\_dial\_in\_countries”]=\>  
array(2) {  
[0]=\>  
string(2) “GB”  
[1]=\>  
string(2) “US”  
}  
[“global\_dial\_in\_numbers”]=\>  
array(19) {  
[0]=\>  
array(4) {  
[“country\_name”]=\>  
string(14) “United Kingdom”  
[“number”]=\>  
string(14) “+44 1314601196”  
[“type”]=\>  
string(4) “toll”  
[“country”]=\>  
string(2) “GB”  
}  
[1]=\>  
array(4) {  
[“country\_name”]=\>  
string(14) “United Kingdom”  
[“number”]=\>  
string(14) “+44 2034815237”  
[“type”]=\>  
string(4) “toll”  
[“country”]=\>  
string(2) “GB”  
}  
[2]=\>  
array(4) {  
[“country\_name”]=\>  
string(14) “United Kingdom”  
[“number”]=\>  
string(14) “+44 2034815240”  
[“type”]=\>  
string(4) “toll”  
[“country”]=\>  
string(2) “GB”  
}  
[3]=\>  
array(4) {  
[“country\_name”]=\>  
string(14) “United Kingdom”  
[“number”]=\>  
string(14) “+44 2039017895”  
[“type”]=\>  
string(4) “toll”  
[“country”]=\>  
string(2) “GB”  
}  
[4]=\>  
array(4) {  
[“country\_name”]=\>  
string(14) “United Kingdom”  
[“number”]=\>  
string(14) “+44 2080806591”  
[“type”]=\>  
string(4) “toll”  
[“country”]=\>  
string(2) “GB”  
}  
[5]=\>  
array(4) {  
[“country\_name”]=\>  
string(14) “United Kingdom”  
[“number”]=\>  
string(14) “+44 2080806592”  
[“type”]=\>  
string(4) “toll”  
[“country”]=\>  
string(2) “GB”  
}  
[6]=\>  
array(4) {  
[“country\_name”]=\>  
string(14) “United Kingdom”  
[“number”]=\>  
string(14) “+44 3300885830”  
[“type”]=\>  
string(4) “toll”  
[“country”]=\>  
string(2) “GB”  
}  
[7]=\>  
array(4) {  
[“country\_name”]=\>  
string(2) “US”  
[“number”]=\>  
string(13) “+1 3863475053”  
[“type”]=\>  
string(4) “toll”  
[“country”]=\>  
string(2) “US”  
}  
[8]=\>  
array(4) {  
[“country\_name”]=\>  
string(2) “US”  
[“number”]=\>  
string(13) “+1 5642172000”  
[“type”]=\>  
string(4) “toll”  
[“country”]=\>  
string(2) “US”  
}  
[9]=\>  
array(4) {  
[“country\_name”]=\>  
string(2) “US”  
[“number”]=\>  
string(13) “+1 6469313860”  
[“type”]=\>  
string(4) “toll”  
[“country”]=\>  
string(2) “US”  
}  
[10]=\>  
array(4) {  
[“country\_name”]=\>  
string(2) “US”  
[“number”]=\>  
string(13) “+1 6694449171”  
[“type”]=\>  
string(4) “toll”  
[“country”]=\>  
string(2) “US”  
}  
[11]=\>  
array(5) {  
[“country\_name”]=\>  
string(2) “US”  
[“city”]=\>  
string(8) “San Jose”  
[“number”]=\>  
string(13) “+1 6699006833”  
[“type”]=\>  
string(4) “toll”  
[“country”]=\>  
string(2) “US”  
}  
[12]=\>  
array(4) {  
[“country\_name”]=\>  
string(2) “US”  
[“number”]=\>  
string(13) “+1 7193594580”  
[“type”]=\>  
string(4) “toll”  
[“country”]=\>  
string(2) “US”  
}  
[13]=\>  
array(5) {  
[“country\_name”]=\>  
string(2) “US”  
[“city”]=\>  
string(8) “New York”  
[“number”]=\>  
string(13) “+1 9292056099”  
[“type”]=\>  
string(4) “toll”  
[“country”]=\>  
string(2) “US”  
}  
[14]=\>  
array(5) {  
[“country\_name”]=\>  
string(2) “US”  
[“city”]=\>  
string(6) “Tacoma”  
[“number”]=\>  
string(13) “+1 2532158782”  
[“type”]=\>  
string(4) “toll”  
[“country”]=\>  
string(2) “US”  
}  
[15]=\>  
array(5) {  
[“country\_name”]=\>  
string(2) “US”  
[“city”]=\>  
string(13) “Washington DC”  
[“number”]=\>  
string(13) “+1 3017158592”  
[“type”]=\>  
string(4) “toll”  
[“country”]=\>  
string(2) “US”  
}  
[16]=\>  
array(4) {  
[“country\_name”]=\>  
string(2) “US”  
[“number”]=\>  
string(13) “+1 3092053325”  
[“type”]=\>  
string(4) “toll”  
[“country”]=\>  
string(2) “US”  
}  
[17]=\>  
array(5) {  
[“country\_name”]=\>  
string(2) “US”  
[“city”]=\>  
string(7) “Chicago”  
[“number”]=\>  
string(13) “+1 3126266799”  
[“type”]=\>  
string(4) “toll”  
[“country”]=\>  
string(2) “US”  
}  
[18]=\>  
array(5) {  
[“country\_name”]=\>  
string(2) “US”  
[“city”]=\>  
string(7) “Houston”  
[“number”]=\>  
string(13) “+1 3462487799”  
[“type”]=\>  
string(4) “toll”  
[“country”]=\>  
string(2) “US”  
}  
}  
[“contact\_name”]=\>  
string(8) “Oak Room”  
[“contact\_email”]=\>  
string(20) “oak@thetherapy.space”  
[“registrants\_email\_notification”]=\>  
bool(false)  
[“meeting\_authentication”]=\>  
bool(false)  
[“encryption\_type”]=\>  
string(19) “enhanced\_encryption”  
[“language\_interpretation”]=\>  
array(1) {  
[“enable”]=\>  
bool(false)  
}  
[“approved\_or\_denied\_countries\_or\_regions”]=\>  
array(1) {  
[“enable”]=\>  
bool(false)  
}  
[“breakout\_room”]=\>  
array(1) {  
[“enable”]=\>  
bool(false)  
}  
[“alternative\_hosts\_email\_notification”]=\>  
bool(true)  
[“device\_testing”]=\>  
bool(false)  
[“focus\_mode”]=\>  
bool(false)  
[“private\_meeting”]=\>  
bool(false)  
[“email\_notification”]=\>  
bool(true)  
[“host\_save\_video\_order”]=\>  
bool(false)  
}  
[“recurrence”]=\>  
array(4) {  
[“type”]=\>  
int(2)  
[“repeat\_interval”]=\>  
int(1)  
[“weekly\_days”]=\>  
string(1) “2”  
[“end\_times”]=\>  
int(3)  
}  
[“pre\_schedule”]=\>  
bool(false)  
}

It appears to return occurrence\_id for the two occurrences that are set up… but I don’t appear to get an occurrence\_id when I create a meeting.

Should I try passing one of these occurrence id’s to the delete operation?

---

<div class="post-metadata">

**Author:** ![rich](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rich/32/1029_2.png) [@rich](https://devforum.zoom.us/u/rich)\
**Post date:** [October 10, 2022, 9:43am UTC](https://devforum.zoom.us/t/deleting-a-meeting/77107/4 "2022-10-10T09:43:14Z")

</div>

hold up - I now appear to be getting an occurrence id back I’m going to try passing that in when I call the api

---

<div class="post-metadata">

**Author:** ![rich](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rich/32/1029_2.png) [@rich](https://devforum.zoom.us/u/rich)\
**Post date:** [October 10, 2022, 10:47am UTC](https://devforum.zoom.us/t/deleting-a-meeting/77107/5 "2022-10-10T10:47:04Z")

</div>

still the same, I pass in the meetingId and occurrence\_id in the params, I just get back the meeting details in full, and no deletion ?

---

<div class="post-metadata">

**Author:** ![rich](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/rich/32/1029_2.png) [@rich](https://devforum.zoom.us/u/rich)\
**Post date:** [October 10, 2022, 1:02pm UTC](https://devforum.zoom.us/t/deleting-a-meeting/77107/6 "2022-10-10T13:02:21Z")

</div>

I’ve sussed it, we weren’t setting the CURLOPT\_CUSTOMREQUEST to delete - I’ve added it now and it works…

```
    switch($request_type) {
        
        case 'post':
            curl_setopt($curlSession, CURLOPT_POST, TRUE);
            break;

        case 'patch':
            curl_setopt($curlSession, CURLOPT_CUSTOMREQUEST, 'PATCH');
            break;
        
        case 'delete':
            curl_setopt($curlSession, CURLOPT_CUSTOMREQUEST, 'DELETE');
            break;

         default:           
            curl_setopt($curlSession, CURLOPT_CUSTOMREQUEST, 'GET');
            break;

    }

```

hope this helps anyone else who is stuck like I was !

---

<div class="post-metadata">

**Author:** ![donte.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/donte.zoom/32/24412_2.png) [@donte.zoom](https://devforum.zoom.us/u/donte.zoom)\
**Post date:** [October 10, 2022, 3:51pm UTC](https://devforum.zoom.us/t/deleting-a-meeting/77107/7 "2022-10-10T15:51:52Z")

</div>

Glad to hear you were able to resolve the issue and thanks for sharing your solution, @rich!
