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

Function deleteOrganization

site/src/api/queries/organizations.ts:62–72  ·  view source on GitHub ↗
(queryClient: QueryClient)

Source from the content-addressed store, hash-verified

60};
61
62export const deleteOrganization = (queryClient: QueryClient) => {
63 return {
64 mutationFn: (organizationId: string) =>
65 API.deleteOrganization(organizationId),
66
67 onSuccess: async () => {
68 await queryClient.invalidateQueries({ queryKey: meKey });
69 await queryClient.invalidateQueries({ queryKey: organizationsKey });
70 },
71 };
72};
73
74export const organizationMembersKey = (id: string, req: UsersRequest) => [
75 "organization",

Callers 1

OrganizationSettingsPageFunction · 0.90

Calls 1

deleteOrganizationMethod · 0.45

Tested by

no test coverage detected