Last active
January 6, 2017 09:48
-
-
Save phondanai/0e79cf994456e766daaf72c52891e37a to your computer and use it in GitHub Desktop.
Open edX bulk delete multiple courses from input file.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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