JavaScript
import Whop from '@whop/sdk'; const client = new Whop({ apiKey: 'My API Key', }); const courseChapter = await client.courseChapters.delete('chap_xxxxxxxxxxxxx'); console.log(courseChapter);
true
Deletes a course chapter
Required permissions:
courses:update
The app API key from an app from the /dashboard/developer page
The ID of the chapter to delete
"chap_xxxxxxxxxxxxx"
A successful response
Represents true or false values.
false
Was this page helpful?