1

Does the google .net API, Google.Apis.Admin.Directory.directory_v1, have the means to delete a user? Code examples? The documentation shows the example https://www.googleapis.com/admin/directory/v1/users/liz@example.com which is no help. It seems to be a standard http request instead of interaction wtih a user object.

Rafa Guillermo
  • 14,474
  • 3
  • 18
  • 54
John
  • 11
  • 1

1 Answers1

0

Answer:

The G Suite Admin SDK API does have a Users: delete method which can be used with the .NET framework.

Additional information:

The HTTP request should be made to:

DELETE https://www.googleapis.com/admin/directory/v1/users/userKey

with the userKey being the email address of the user, or the user's unique ID. No request body needs to be sent, and the response body is also empty.

References:

Community
  • 1
  • 1
Rafa Guillermo
  • 14,474
  • 3
  • 18
  • 54