Delete Google Classroom course, archived argument?

31 views
Skip to first unread message

Fernando Fernández

unread,
Dec 1, 2025, 7:17:15 AM (6 days ago) Dec 1
to GAM for Google Workspace
Hello all

From the docs:

Classes can only be deleted when they are in the ARCHIVED state; to delete a class, you can update its state to ARCHIVED and then delete it or you can specify that it be archived as parot of the delete command.

gam delete course <CourseID> [archived]
gam delete courses <CourseEntity> [archived]

It is not clear to me what the archived argument does. Does it perform the state update to archived and then delete? Or does it only delete courses which are already archived?

Thank you very much in advance.

Ross Scroggs

unread,
Dec 1, 2025, 10:13:06 AM (6 days ago) Dec 1
to google-ap...@googlegroups.com
Updated typo in Wiki

Classes can only be deleted when they are in the ARCHIVED state; to delete a class, you can update its state to ARCHIVED and then delete it or you can specify that it be archived as part of the delete command.

Ross
----
Ross Scroggs



--
You received this message because you are subscribed to the Google Groups "GAM for Google Workspace" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-apps-man...@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/google-apps-manager/f63ecadf-7c4a-4085-a699-0181de856d94n%40googlegroups.com.

Fernando Fernández

unread,
Dec 1, 2025, 11:53:52 AM (6 days ago) Dec 1
to GAM for Google Workspace
Hello Ross

So, to achieve what I want (archive+delete in the same command) I need to use gam delete course <CourseID> archived, right? My question is: how I can instruct it to be archived as part of the delete command? By appending "archived" or without it?

Ross Scroggs

unread,
Dec 1, 2025, 12:07:35 PM (6 days ago) Dec 1
to google-ap...@googlegroups.com
gam delete course <CourseID> archived

This archives the course if it isn't already archived and then deletes it.

Ross
----
Ross Scroggs


Reply all
Reply to author
Forward
0 new messages