import { useApiFetch } from "#imports"; export async function deleteStory(id: number) { await useApiFetch(`/story/${id}`, { method: "delete" }); await navigateTo("/my-stuff/stories"); }