Back

Deleting phone number from one account to add to another

  • 0
  • Flutter
  • Auth
  • Cloud
AndresR
16 May, 2024, 20:17

Hi Appwrite team. In the console. I am trying to delete an account to free up a phone number so I can use it on another account, but when I try to add the phone number to the account I get this error message "A target with the same ID already exists." It gives me that error even when the original account that had that phone number is deleted.

Thanks for your help.

TL;DR
Developers want to transfer a phone number from one account to another on their platform but encounter an error "A target with the same ID already exists" even after deleting the original account. The solution is to first fully delete the account with the phone number and clear any associated data before attempting to add the number to a new account.
AndresR
16 May, 2024, 20:19

Deleting phone number from one account to add to another

Evdog
16 May, 2024, 20:19

Where are you doing this? When im in the auth tab of my project I can delete and readd without the error right now

AndresR
16 May, 2024, 20:30

Yes. I am doing it in the Auth tab. Maybe I didn't explain it well. Let's say I have two accounts. One has a phone number to log in with and the other does not. I want to move that phone number to the second account, so I delete that account and try to add the same phone number to the 2nd account. That is when I get the error.

Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more