0xtech0
Convex Community2y ago
5 replies
0xtech

Delete multiple files with id

Hello Team
Can I update function to delete multiple files with id ?
import { v } from "convex/values";
import { Id } from "./_generated/dataModel";
import { mutation } from "./_generated/server";

export const deleteById = mutation({
  args: {
    storageId: v.id("_storage"),
  },
  handler: async (ctx, args) => {
    return await ctx.storage.delete(args.storageId);
  },
});
Was this page helpful?