# Unable to delete a cloud recording

**URL:** <https://devforum.zoom.us/t/unable-to-delete-a-cloud-recording/115141>\
**Category:** API and Webhooks\
**Tags:** recording\
**Created:** [August 6, 2024, 6:24pm UTC](https://devforum.zoom.us/t/unable-to-delete-a-cloud-recording/115141 "2024-08-06T18:24:18Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![MarcelB](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/marcelb/32/25698_2.png) [@MarcelB](https://devforum.zoom.us/u/MarcelB)\
**Post date:** [August 6, 2024, 6:24pm UTC](https://devforum.zoom.us/t/unable-to-delete-a-cloud-recording/115141/1 "2024-08-06T18:24:18Z")

</div>

**API Endpoint(s) and/or Zoom API Event(s)**  
_[Zoom Meeting API](https://developers.zoom.us/docs/api/rest/reference/zoom-api/methods/#operation/recordingDeleteOne)_

**Description**  
_Although my access token allow me to list recording, although my token has /recording:write:admin scope, my Curl request to delete a recording returns nothing. None of the documented codes, but 0._

**Error?**  
I’m expecting one of the return codes of the API (200, 204, 400, 404). Instead, here is a curl\_getinfo() of my Curl handle (PHP):  
(  
[url] =\> /meetings/XXXXXXXXXXXX6cHhBg%3D%3D/recordings/38be501d-1a82-4782-9c12-XXXXXXXXXXXX  
[content\_type] =\>  
[http\_code] =\> 0  
[header\_size] =\> 0  
[request\_size] =\> 0  
[filetime] =\> -1  
[ssl\_verify\_result] =\> 0  
[redirect\_count] =\> 0  
[total\_time] =\> 0  
[namelookup\_time] =\> 0  
[connect\_time] =\> 0  
[pretransfer\_time] =\> 0  
[size\_upload] =\> 0  
[size\_download] =\> 0  
[speed\_download] =\> 0  
[speed\_upload] =\> 0  
[download\_content\_length] =\> -1  
[upload\_content\_length] =\> -1  
[starttransfer\_time] =\> 0  
[redirect\_time] =\> 0  
[redirect\_url] =\>  
[primary\_ip] =\>  
[certinfo] =\> Array  
(  
)

```
[primary_port] => 0
[local_ip] => 
[local_port] => 0
[http_version] => 0
[protocol] => 0
[ssl_verifyresult] => 0
[scheme] => 
[appconnect_time_us] => 0
[connect_time_us] => 0
[namelookup_time_us] => 0
[pretransfer_time_us] => 0
[redirect_time_us] => 0
[starttransfer_time_us] => 0
[total_time_us] => 0

```

)

**How To Reproduce**  
function zoom\_delete($meeting\_id,$recording\_id) {  
$url=“/meetings/”.urlencode($meeting\_id).“/recordings/$recording\_id”;  
$ch = curl\_init($url); // Initialise cURL  
$token=getZoomToken();  
curl\_setopt\_array($ch, array(  
CURLOPT\_URL =\> $url,  
CURLOPT\_RETURNTRANSFER =\> true,  
CURLOPT\_ENCODING =\> “”,  
CURLOPT\_MAXREDIRS =\> 10,  
CURLOPT\_TIMEOUT =\> 30,  
CURLOPT\_HTTP\_VERSION =\> CURL\_HTTP\_VERSION\_1\_1,  
CURLOPT\_CUSTOMREQUEST =\> (“DELETE”),  
CURLOPT\_HTTPHEADER =\> array(  
“Content-Type: application/json”,  
"authorization: Bearer “.$token-\>access\_token  
),  
));  
try {  
print\_r(“Deleting meeting $meeting\_id, recording $recording\_id\n”);  
$result = curl\_exec($ch);  
print\_r(“Deleting meeting $meeting\_id, recording $recording\_id RETURNED :\n”);  
print\_r($result);  
print\_r(curl\_getinfo($ch));  
} catch (Exception $e) {  
print\_r(“Deleting meeting $meeting\_id, recording $recording\_id FAILED :\n”);  
$err = curl\_error($ch);  
print\_r($err-\>getMessage().” delete failed : $err, ".print\_r($ch,true));  
}  
print("Curl info : ".print\_r(curl\_getinfo($ch),true));  
curl\_close($ch); // Close the cURL connection  
print("Delete of meeting $meeting\_id, recording $recording\_id : ".print\_r($result,true));  
return(json\_decode($result)); // Return the received data  
}

Any help is dearly appreciated. Thank you.

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [August 7, 2024, 4:59pm UTC](https://devforum.zoom.us/t/unable-to-delete-a-cloud-recording/115141/3 "2024-08-07T16:59:40Z")

</div>

Hi @MarcelB , an you please share a screenshot of the response?

---

<div class="post-metadata">

**Author:** ![MarcelB](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/marcelb/32/25698_2.png) [@MarcelB](https://devforum.zoom.us/u/MarcelB)\
**Post date:** [August 23, 2024, 2:41pm UTC](https://devforum.zoom.us/t/unable-to-delete-a-cloud-recording/115141/4 "2024-08-23T14:41:38Z")

</div>

Sorry for posting this. I see that my URL is a relative URL.  
Disregard this post. Sorry.

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [August 23, 2024, 6:29pm UTC](https://devforum.zoom.us/t/unable-to-delete-a-cloud-recording/115141/5 "2024-08-23T18:29:30Z")

</div>

No problem, happy you resolved @MarcelB

---

<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:** [August 24, 2024, 6:30pm UTC](https://devforum.zoom.us/t/unable-to-delete-a-cloud-recording/115141/6 "2024-08-24T18:30:18Z")

</div>

Closed on August 24, 2024, 6:30pm UTC

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