# C# API automation for deleting the cloud recordings using OAuth

**URL:** <https://devforum.zoom.us/t/c-api-automation-for-deleting-the-cloud-recordings-using-oauth/64292>\
**Category:** API and Webhooks\
**Tags:** webhooks, oauth\
**Created:** [February 14, 2022, 5:36pm UTC](https://devforum.zoom.us/t/c-api-automation-for-deleting-the-cloud-recordings-using-oauth/64292 "2022-02-14T17:36:12Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![pavani.kokkiragadda](https://avatars.discourse-cdn.com/v4/letter/p/e9bcb4/32.png) [@pavani.kokkiragadda](https://devforum.zoom.us/u/pavani.kokkiragadda)\
**Post date:** [February 14, 2022, 5:36pm UTC](https://devforum.zoom.us/t/c-api-automation-for-deleting-the-cloud-recordings-using-oauth/64292/1 "2022-02-14T17:36:12Z")

</div>

## Using this template helps us debug your issues more effectively 🙂

**Description**  
I have created OAuth app in zoom and I am trying to develop an application that can delete the cloud recordings after they are moved to a safer location. I also have webhook that triggers when recordings are complete which works fine.

**Error**  
I was able to successfully do this action through post man. I am trying to develop an API in C# which can automate this process. I have client id n secret. But I am unable to authenticate in the API. Can you please provide a way to do it in C#? What exactly is redirect url going? (I created a Post request in controller and deployed to my DEV and added that url as redirect url - please confirm if this is correcT)

**Which App Type (OAuth / Chatbot / JWT / Webhook)?**  
OAuth

**Which Endpoint/s?**  
[https://api.zoom.us/v2/meetings/{meeeting\_id}/recordings?action=trash](https://api.zoom.us/v2/meetings/%7Bmeeeting_id%7D/recordings?action=trash)

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

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

**Screenshots (If applicable)**  
If applicable, add screenshots to help explain your problem.

**Additional context**  
Add any other context about the problem here.

---

<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:** [April 21, 2022, 4:13pm UTC](https://devforum.zoom.us/t/c-api-automation-for-deleting-the-cloud-recordings-using-oauth/64292/2 "2022-04-21T16:13:18Z")

</div>

Hi, @pavani.kokkiragadda,

Thank you for posting – I am happy to help! To start, can you share the C# script used to authenticate the API? Also, I kindly ask can you share any errors you encounter when running your script?

> [@pavani.kokkiragadda](#):
>
> What exactly is redirect url going?

The redirect will go to the URL that you have provided in the Marketplace App configuration.

# Redirect URL for OAuth

[https://marketplace.zoom.us/docs/guides/build/oauth-app#redirect-url-for-oauth](https://marketplace.zoom.us/docs/guides/build/oauth-app#redirect-url-for-oauth)

Regards,  
Donte
