Hi! I’m trying to add a mutation to delete files from Convex storage, but it never appears in the Functions tab and is not callable from the client. Here’s my code in convex/storage.ts:
import { mutation } from "./_generated/server";
import { v } from "convex/values";
export const deleteStorageFile = mutation({
args: { storageId: v.id("_storage") },
handler: async (ctx, { storageId }) => {
await ctx.storage.delete(storageId);
return { success: true };
},
});
I’ve run npx convex dev and npx convex dev --verbose.
The file is in the convex/ directory.
Other functions in this file (like generateUploadUrl) work fine.
No TypeScript errors.
The function never shows up in the dashboard.
What could cause this mutation to not be registered or visible? What should I do to fix it?