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