by Ken Task.
When these shell courses are created in various categories, are they set to be 'invisble'?
Reason asked ... one can build a course ID text file of courses (regardless of category) that are invisible via mysql command line client, then use that invisible course id list in looping bash shells (loops through the invisible course ID text file) to execute whatever one wants using either the scripts in admin/cli/ or moosh.
Just did one of those this weekend - smaller site - about 500 courses. Used a nohup -> looping bash shell & command so it would run in background until completed - backed up invisible courses. Next run to properly delete courses.
'SoS', Ken