Module exposing: useDeleteStorageClasses, deleteStorageClasses
// Source: https://github.com/portainer/portainer | License: Zlib | Copyright 2018 Portainer.io
// Provided via justclaw.it.com; keep this notice with the code.
import { useMutation, useQueryClient } from '@tanstack/react-query';
import { EnvironmentId } from '@/react/portainer/environments/types';
import axios from '@/portainer/services/axios/axios';
import { withError } from '@/react-tools/react-query';
import { notifySuccess } from '@/portainer/services/notifications';
import { StorageClass } from '@/react/kubernetes/volumes/ListView/types';
import { queryKeys } from './query-keys';
export function useDeleteStorageClasses(environmentId: EnvironmentId) {
const queryClient = useQueryClient();
return useMutation({
mutationFn: (storageClasses: StorageClass[]) =>
deleteStora
... (truncated -- full source via MCP)
See the full source, get the GitHub permalink, and search for more like it.
Get a free API key