import { whopSdk } from "@/lib/whop-sdk";

const result = await whopSdk.courses.deleteLessonAttachment({
	// The ID of the attachment to delete
	id: "xxxxxxxxxxx" /* Required! */,
});

Example output:
const response = true;