3

The Google Apps Email Settings API describes creating and retrieving Send-as aliases, but not how to delete them. Is it possible to do this via the API, or is there a workaround?

I'm using the Directory API to add and delete user aliases, which takes care of whether someone can receive at an alias, but I'm stuck on how to remove their Send-as alias.

James
  • 53
  • 1
  • 6

3 Answers3

2

The ability to delete send-as aliases has been added to the API, though I haven't tested it myself - https://developers.google.com/gmail/api/v1/reference/users/settings/sendAs/delete

James
  • 53
  • 1
  • 6
1

There is no sendas delete method. Users must manually delete the sendas from the UI.

Jay Lee
  • 13,415
  • 3
  • 28
  • 59
  • Got confirmation from Google support that this is indeed the case. A feature request to add the delete method to the API has been made. – James Feb 13 '14 at 08:35
  • Here's the original feature request, dating from June 2011: [apps-api-issues](https://code.google.com/a/google.com/p/apps-api-issues/issues/detail?id=2628) – James May 01 '14 at 04:52
0

The Directory API has a method to "delete all aliases". Not sure if that includes "sendas" alias but might be worth checking.

Bruce
  • 99
  • 1
  • 9