import Whop from '@whop/sdk';const client = new Whop({ apiKey: process.env['WHOP_API_KEY'], // This is the default and can be omitted});const courseChapter = await client.courseChapters.delete('chap_xxxxxxxxxxxxx');console.log(courseChapter);
Copy
Ask AI
true
Course chapters
Delete course chapter
Deletes a course chapter
Required permissions:
courses:update
DELETE
/
course_chapters
/
{id}
JavaScript
Copy
Ask AI
import Whop from '@whop/sdk';const client = new Whop({ apiKey: process.env['WHOP_API_KEY'], // This is the default and can be omitted});const courseChapter = await client.courseChapters.delete('chap_xxxxxxxxxxxxx');console.log(courseChapter);