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

Function deleteUserSecret

site/src/api/queries/userSecrets.ts:43–52  ·  view source on GitHub ↗
(queryClient: QueryClient, userId: string)

Source from the content-addressed store, hash-verified

41};
42
43export const deleteUserSecret = (queryClient: QueryClient, userId: string) => {
44 return {
45 mutationFn: (name: string) => API.deleteUserSecret(userId, name),
46 onSuccess: async () => {
47 await queryClient.invalidateQueries({
48 queryKey: userSecretsKey(userId),
49 });
50 },
51 };
52};

Callers 1

SecretsPageFunction · 0.90

Calls 2

userSecretsKeyFunction · 0.85
deleteUserSecretMethod · 0.80

Tested by

no test coverage detected