Is there a way to delete an unlinked/orphaned address via the REST API?
![](https://secure.gravatar.com/avatar/b009b2809a98fc29d87d2ef8a9609005.jpg?s=120&d=mm&r=g)
After unlinking an address from a user, there is an address in the addresses table that is orphaned - i.e. it does not have a linked user. This is the expected behaviour (I think) - that’s fine, no problems at this point.
However, I can’t see a way to delete these addresses via the REST API. Does one exist? Should it exist? Perhaps so - without it there’s no way to delete orphaned email addresses.
thanks
as
![](https://secure.gravatar.com/avatar/173371753ea2206b9934a9be1bdce423.jpg?s=120&d=mm&r=g)
On Feb 05, 2015, at 11:55 AM, Andrew Stuart wrote:
After unlinking an address from a user, there is an address in the addresses table that is orphaned - i.e. it does not have a linked user. This is the expected behaviour (I think) - that’s fine, no problems at this point.
Correct.
However, I can’t see a way to delete these addresses via the REST API. Does one exist? Should it exist? Perhaps so - without it there’s no way to delete orphaned email addresses.
Right. I just added a DELETE method for addresses.
Note that if the address is linked to a user, the user is not deleted, it's just unlinked.
Cheers, -Barry
participants (2)
-
Andrew Stuart
-
Barry Warsaw