Reputation: 11
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
Reputation: 15375
The G Suite Admin SDK API does have a Users: delete
method which can be used with the .NET framework.
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.
Upvotes: 0