capabilities.work

Delete a User Safely

A 2-step recipe with Google Workspace. We can help you get access.

Recipe · 2 steps

Delete a User Safely

with Google Workspace · Identity & Access Management

Verify a user exists and then delete the account.

  1. Read the user by its key to confirm the account exists and capture the id and org unit before deleting.
  2. Delete the confirmed user account. The user remains recoverable for 20 days via the undelete operation.
What you'll need to have ready
  • accessToken: OAuth 2.0 bearer access token with the admin.directory.user scope.
  • userKey: Primary email, alias, or unique id of the user to delete.
For your developer

Arazzo workflow google-workspace:delete-user-safely, 2 operations: getUser → deleteUser. Specs on APIs.io.