# Delete listed phone number on user profile via the API

**URL:** <https://devforum.zoom.us/t/delete-listed-phone-number-on-user-profile-via-the-api/66795>\
**Category:** API and Webhooks\
**Created:** [March 31, 2022, 4:50pm UTC](https://devforum.zoom.us/t/delete-listed-phone-number-on-user-profile-via-the-api/66795 "2022-03-31T16:50:00Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dupination](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/dupination/32/35614_2.png) [@dupination](https://devforum.zoom.us/u/dupination)\
**Post date:** [March 31, 2022, 4:50pm UTC](https://devforum.zoom.us/t/delete-listed-phone-number-on-user-profile-via-the-api/66795/1 "2022-03-31T16:50:00Z")

</div>

**Description**  
I am trying to use the API to update a user’s Zoom Profile. What I want to do is remove the phone number listed on their profile. I can change the number listed but not fully delete it.

**Error**  
Returns 204 success when the phone number is not removed. Using the code snip below.

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

**Which Endpoint/s?**  
Any Zoom user with phone number list.

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

1. I am passing a empty string to try and remove the phone number. I can reproduce in Postman

**Screenshots (If applicable)**

```auto
def delete_listed_phone(id):
    settings = {
        "phone_numbers": [{"number": ''}]
    }  
    API_PATCH_URL = 'https://api.zoom.us/v2/users/' + id
    r = requests.patch(API_PATCH_URL, headers=API_HEADERS,data=json.dumps(settings))
    print(str(r.status_code))
    if(204 != r.status_code):
        print("Exit Code: "+r.text)

```

I want to remove this field:  
 ![image](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/7/4/748571fc32b5f4cb2e4315553ab20d5389e94c0f.png)

Let me know if there is another way to remove the phone number listed.

Thanks!

---

<div class="post-metadata">

**Author:** ![elisa.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/elisa.zoom/32/47836_2.png) [@elisa.zoom](https://devforum.zoom.us/u/elisa.zoom)\
**Post date:** [April 6, 2022, 9:30pm UTC](https://devforum.zoom.us/t/delete-listed-phone-number-on-user-profile-via-the-api/66795/2 "2022-04-06T21:30:56Z")

</div>

Hi @dupination

Thanks for reaching out! I am happy to help here!  
I did some testing on my end and I was able to delete the number by passing the entire phone\_numbers object with all the fields in the request.

Feel free to try this out and let me know if that helps!  
Best,  
Elisa

---

<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:** [May 7, 2022, 7:31am UTC](https://devforum.zoom.us/t/delete-listed-phone-number-on-user-profile-via-the-api/66795/3 "2022-05-07T07:31:43Z")

</div>

Closed on May 7, 2022, 7:31am UTC

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