# Getting error while deleting a meeting in PHP

**URL:** <https://devforum.zoom.us/t/getting-error-while-deleting-a-meeting-in-php/31296>\
**Category:** API and Webhooks\
**Created:** [September 25, 2020, 10:36am UTC](https://devforum.zoom.us/t/getting-error-while-deleting-a-meeting-in-php/31296 "2020-09-25T10:36:55Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![vinod.tamada](https://avatars.discourse-cdn.com/v4/letter/v/3da27b/32.png) [@vinod.tamada](https://devforum.zoom.us/u/vinod.tamada)\
**Post date:** [September 25, 2020, 10:36am UTC](https://devforum.zoom.us/t/getting-error-while-deleting-a-meeting-in-php/31296/1 "2020-09-25T10:36:55Z")

</div>

Always getting {“code”:124,“message”:“Invalid access token.”} at the time of deleting a meeting from JWT.

$request\_url = ‘[https://api.zoom.us/v2/meetings/](https://api.zoom.us/v2/meetings/)’.$meeting\_id;  
$headers = array(  
“authorization:Bearer {$token}”,  
‘content-type: application/json’  
);  
$postFields = array();  
$ch = curl\_init();  
curl\_setopt($ch, CURLOPT\_URL, $request\_url);  
curl\_setopt($ch, CURLOPT\_CUSTOMREQUEST, “DELETE”);  
$result = curl\_exec($ch);  
$httpCode = curl\_getinfo($ch, CURLINFO\_HTTP\_CODE);  
curl\_close($ch);  
$err = curl\_error($ch);  
curl\_close($ch); print\_r($response);  
if(!$response){  
return $err;  
}  
return json\_decode($response);

---

<div class="post-metadata">

**Author:** ![will.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/will.zoom/32/14417_2.png) [@will.zoom](https://devforum.zoom.us/u/will.zoom)\
**Post date:** [September 28, 2020, 4:58pm UTC](https://devforum.zoom.us/t/getting-error-while-deleting-a-meeting-in-php/31296/2 "2020-09-28T16:58:18Z")

</div>

Hey @vinod.tamada,

Can you confirm that the meeting you’re trying to delete is associated with the account under which your JWT credentials are associated with? If you can share the account number and meeting ID, I’m happy to take a closer look.

Thanks,  
Will

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [October 29, 2020, 2:58am UTC](https://devforum.zoom.us/t/getting-error-while-deleting-a-meeting-in-php/31296/3 "2020-10-29T02:58:19Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
