Skip to content

Commit 3ad9c2f

Browse files
readme
1 parent 056eb25 commit 3ad9c2f

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

examples/course/deleteCourse.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
const { codio, auth } = require('../auth.js')
22

33
async function main() {
4-
await auth
4+
await auth
5+
try {
56
await codio.course.deleteCourse({id: "your course id", removeOutdatedStudents: false})
7+
console.log("Course deleted successfully.")
8+
} catch (error) {
9+
console.error("Error deleting course:", error)
10+
}
611
}
712

813
main()

0 commit comments

Comments
 (0)