MCPcopy Index your code
hub / github.com/coder/coder / deleteGroup

Function deleteGroup

site/src/api/queries/groups.ts:192–201  ·  view source on GitHub ↗
(queryClient: QueryClient, organization: string)

Source from the content-addressed store, hash-verified

190};
191
192export const deleteGroup = (queryClient: QueryClient, organization: string) => {
193 return {
194 mutationFn: ({ groupId }: { groupId: string; groupName: string }) =>
195 API.deleteGroup(groupId),
196 onSuccess: async (
197 _: unknown,
198 { groupName }: { groupId: string; groupName: string },
199 ) => invalidateGroup(queryClient, organization, groupName),
200 };
201};
202
203export const addMembers = (queryClient: QueryClient, organization: string) => {
204 return {

Callers 1

GroupPageFunction · 0.90

Calls 2

invalidateGroupFunction · 0.85
deleteGroupMethod · 0.80

Tested by

no test coverage detected