Unable to delete phone numbers from account
# support
b
Hi, I am attempting to delete a set of phone numbers from my account, but when I go into the UI and delete the number, they immediately reappear in the UI. I have tried to use the API as well, but the same result occurs. Is there some type of bug when it comes to deleting phone numbers.
v
Hi there! 👋 I understand you're having trouble deleting phone numbers from your account. While I don't have information about a specific confirmed bug with phone numbers reappearing immediately after deletion, I can definitely help troubleshoot this issue. Based on the information I've found, there are several potential causes and solutions: ### Possible Causes 1. **Soft Delete vs Hard Delete**: Your phone numbers might be undergoing a "soft delete" rather than a "hard delete." This means they're marked as deleted in the system but still exist in the database, causing them to reappear in the UI. According to [similar issues with deleting call logs](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1337314227857391627), a hard delete might only be possible from the backend. 2. **Twilio Integration**: If your phone numbers were provisioned through Twilio, they should be released through the Twilio API first. According to [support documentation](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1335389709035110430), "Since VAPI provisions the phone number for you via Twilio, releasing the number through Twilio's API is the correct approach. There is no separate action required in VAPI to release the number if it's being managed through Twilio." ### Troubleshooting Steps For the API: 1. Ensure you're using the correct endpoint:
https://api.vapi.ai/phone-number/:id
with the DELETE method 2. Verify your authorization header is correct:
Authorization: Bearer <token>
3. Double-check that you're using the correct phone number ID in the request For the UI: 1. Check your Twilio configuration and Vapi integration to ensure proper webhook settings 2. Verify you haven't reached the maximum number of free phone numbers (which can cause errors) 3. Try clearing your browser cache or using a different browser
If the issue persists after trying these steps, it may indeed be a bug on the Vapi side. In that case, reaching out to Vapi support with detailed information about the issue would be the next step, as mentioned in [support documentation](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1331648945818177586). Is there any additional information about your setup or the specific steps you've already tried that might help me provide more targeted assistance? Sources: - [Discord thread about soft vs hard deletes](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1337314227857391627) - [Discord thread about Twilio integration](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1335389709035110430) - [Discord thread about potential bugs](https://discord.com/channels/1211482211119796234/1211483291191083018/threads/1331648945818177586)
k
hey bsolo, could you share the phone number IDs?
b
hey, they eventually got deleted, but it took a couple of minutes for the changes to show up
even with the API
Unfortunately I don't have the IDs anymore, but when I work on the phone number aspect of my app again I will let you know
k
Marking this ticket as Solved ✅