capabilities.work

Find and Delete a Group

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

Recipe · 3 steps

Find and Delete a Group

with Google Workspace · Identity & Access Management

Search for a group and delete it when a match is found.

  1. Search the groups list with the supplied query, returning at most one candidate match.
  2. Read the matched group to confirm it exists before deleting it.
  3. Delete the confirmed group from the directory.
What you'll need to have ready
  • accessToken: OAuth 2.0 bearer access token with the admin.directory.group scope.
  • query: Group search query, for example "email:team@example.com".
  • customer: Customer account id or the my_customer alias.
For your developer

Arazzo workflow google-workspace:find-and-delete-group, 3 operations: listGroups → getGroup → deleteGroup. Specs on APIs.io.