# Cannot delete cloud recordings

**URL:** <https://devforum.zoom.us/t/cannot-delete-cloud-recordings/45895>\
**Category:** API and Webhooks\
**Created:** [March 17, 2021, 4:54pm UTC](https://devforum.zoom.us/t/cannot-delete-cloud-recordings/45895 "2021-03-17T16:54:40Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ppo](https://avatars.discourse-cdn.com/v4/letter/p/b9e5f3/32.png) [@ppo](https://devforum.zoom.us/u/ppo)\
**Post date:** [March 17, 2021, 4:54pm UTC](https://devforum.zoom.us/t/cannot-delete-cloud-recordings/45895/1 "2021-03-17T16:54:40Z")

</div>

**Description**  
When I try to delete a recording, I do not get any errors but the recording does no get delete using NODEJS

I’m using the OAuth for authentication

**Which Endpoint/s?**  
[https://api.zoom.us/v2/meetings/${meetingId}/recording?action=trash](https://api.zoom.us/v2/meetings/%24%7BmeetingId%7D/recording?action=trash)

**How To Reproduce (If applicable)**  
Steps to reproduce the behavior:

1. Request URL / Headers (without credentials) / Body
2. See error

This the code calling the endpoint

exports.deleteRecording = asyncHandler(async (req, res, next) =\> {  
const { meetingId } = req.params;  
const { token } = req.body;  
const url = `https://api.zoom.us/v2/meetings/${meetingId}/recording?action=trash`;  
try {  
const zoomResponse = await axios.delete(url, undefined, {  
headers: {  
authorization: `Bearer ${token}`,  
},  
});  
if (zoomResponse.status !== 204) {  
return next(new ErrorResponse(“Recording Could not be deleted”));  
}  
if (zoomResponse.status === 204) {  
return res.status(200).json({  
success: true,  
message: “Recording deleted”,  
});  
}  
} catch (error) {  
return next(new ErrorResponse(“An error occured”, 500));  
}  
});

---

<div class="post-metadata">

**Author:** ![MaxM](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/maxm/32/42303_2.png) [@MaxM](https://devforum.zoom.us/u/MaxM)\
**Post date:** [March 18, 2021, 1:17am UTC](https://devforum.zoom.us/t/cannot-delete-cloud-recordings/45895/2 "2021-03-18T01:17:53Z")

</div>

Hey @ppo,

Thank you for reaching out to the Zoom Developer Forum. Please send an email to [developersupport@zoom.us](mailto:developersupport@zoom.us) with a link to this thread. In that email, please include the full request URL that you’re using - including the meeting ID.

Thanks,  
Max

---

<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:** [April 17, 2021, 11:18am UTC](https://devforum.zoom.us/t/cannot-delete-cloud-recordings/45895/3 "2021-04-17T11:18:13Z")

</div>

Closed on April 17, 2021, 11:18am UTC

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