Skip to main content
DELETE
/
course_lessons
/
{id}
JavaScript
import Whop from '@whop/sdk';

const client = new Whop({
  appID: 'app_xxxxxxxxxxxxxx',
  apiKey: 'My API Key',
});

const courseLesson = await client.courseLessons.delete('lesn_xxxxxxxxxxxxx');

console.log(courseLesson);
true

Authorizations

Authorization
string
header
required

The app API key from an app from the /dashboard/developer page

Path Parameters

id
string
required
Example:

"lesn_xxxxxxxxxxxxx"

Response

A successful response

Represents true or false values.