# Delete meeting through Api?

**URL:** <https://devforum.zoom.us/t/delete-meeting-through-api/26847>\
**Category:** API and Webhooks\
**Created:** [August 11, 2020, 3:47pm UTC](https://devforum.zoom.us/t/delete-meeting-through-api/26847 "2020-08-11T15:47:34Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![amin.amr.55](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/amin.amr.55/32/55069_2.png) [@amin.amr.55](https://devforum.zoom.us/u/amin.amr.55)\
**Post date:** [August 11, 2020, 3:47pm UTC](https://devforum.zoom.us/t/delete-meeting-through-api/26847/1 "2020-08-11T15:47:34Z")

</div>

i use this in php . to create room, how could i delete room with this ?

function addLessonOnZoom($title,$start\_at,$duration=null){

```
$api_secret = '';

$api_key = '';

$payload = array(

    'iss' => $api_key,

    'exp' => (time() + 260),

    'topic' => $title,

    "type" => 2,

    "start_time" => $start_at,

    "duration" => $duration,

    "password" => "121212",

    "host" => "fred",

);

$jwt = '..-';

$client = new \GuzzleHttp\Client(['base_uri' => 'https://api.zoom.us/v2/']);

$headers = [

    'Authorization' => 'Bearer ' . $jwt,

    'Accept' => 'application/json',

    'content-type' => 'application/json',

];

$response = $client->request('POST', 'users/me/meetings', [

    'json' => $payload,

    'headers' => $headers,

    'http_errors' => false,

    'Content-Type' => "application/json",

    'Accept' => '*/*',

])->getBody()->getContents();

$res = (array) json_decode($response);

return $res ;

```

}

---

<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:** [August 11, 2020, 9:22pm UTC](https://devforum.zoom.us/t/delete-meeting-through-api/26847/2 "2020-08-11T21:22:54Z")

</div>

Hey @amin.amr.55,

You can use the Delete Meeting API:

> **[Delete a Meeting - Meetings - Zoom API - API Reference](https://marketplace.zoom.us/docs/api-reference/zoom-api/meetings/meetingdelete)**
>
> Delete a meeting.
> Scopes: meeting:write:admin meeting:write
> 
> Rate Limit Label: Light
> 
> Authorization
> 
> Flow: authorizationCode
> 
> Authorization URL: https&...

NOTE: Please do not post your API Secrets or JWT Token on this public forum. I have deleted them from your post.

Thanks,  
Tommy

---

<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:** [September 11, 2020, 7:22am UTC](https://devforum.zoom.us/t/delete-meeting-through-api/26847/3 "2020-09-11T07:22:57Z")

</div>

Closed on September 11, 2020, 7:22am UTC

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