MCPcopy Index your code
hub / github.com/simstudioai/sim / useDeleteKnowledgeBase

Function useDeleteKnowledgeBase

apps/sim/hooks/queries/kb/knowledge.ts:680–694  ·  view source on GitHub ↗
(workspaceId?: string)

Source from the content-addressed store, hash-verified

678}
679
680export function useDeleteKnowledgeBase(workspaceId?: string) {
681 const queryClient = useQueryClient()
682
683 return useMutation({
684 mutationFn: deleteKnowledgeBase,
685 onSettled: (_data, _error, variables) => {
686 queryClient.invalidateQueries({
687 queryKey: knowledgeKeys.lists(),
688 })
689 queryClient.invalidateQueries({
690 queryKey: knowledgeKeys.detail(variables.knowledgeBaseId),
691 })
692 },
693 })
694}
695
696interface BulkChunkOperationParams {
697 knowledgeBaseId: string

Callers 3

KnowledgeFunction · 0.90
KnowledgeBaseFunction · 0.90

Calls

no outgoing calls

Tested by

no test coverage detected