John
John

Reputation: 11

Does the google .net admin API have the means to delete a user?

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/[email protected] which is no help. It seems to be a standard http request instead of interaction wtih a user object.

Upvotes: 1

Views: 279

Answers (1)

Rafa Guillermo
Rafa Guillermo

Reputation: 15375

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:

Upvotes: 0

Related Questions