Skip to content

Instantly share code, notes, and snippets.

@phondanai
Last active January 6, 2017 09:48
Show Gist options
  • Save phondanai/0e79cf994456e766daaf72c52891e37a to your computer and use it in GitHub Desktop.
Save phondanai/0e79cf994456e766daaf72c52891e37a to your computer and use it in GitHub Desktop.
Open edX bulk delete multiple courses from input file.
#!/bin/bash
cd /edx/app/edxapp/edx-platform
while read NAME; do { echo 'y' ; echo 'y' ; } | sudo -u www-data /edx/bin/python.edxapp ./manage.py cms \
--settings=aws delete_course $NAME; done < /path/to/course_list_file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment