Deleting Files
Files stored in Convex can be deleted from
mutations,
actions, and
HTTP actions via the
storage.delete()
function:
import { mutation } from "./_generated/server";
export const deleteById = mutation(async ({ storage }, { storageId }) => {
return await storage.delete(storageId);
});