Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


Note

See Deleting a course /wiki/spaces/SRE/pages/152797240 for the Operations perspective.

...

  1. In the edx-platform directory:
      - cd /edx/app/edxapp/edx-platform
  2. Run the following Django management command:
       - sudo -u www-data /edx/bin/python.edxapp /edx/bin/manage.edxapp lms dump_course_ids --settings production
  3. Find the course ID which you'd like to delete in the resulting list of course IDs.
  4. Copy the course ID into the following command and run it:
      - sudo -u www-data /edx/bin/python.edxapp /edx/bin/manage.edxapp cms delete_course <COURSE_ID> --settings production
      - You'll be asked to verify the deletion.
  5. To verify the deletion, run the command from step 2 above and ensure that the course ID is not in the list.


Not sure if this is helpful to anyone else, but for running these commands via Devstack with the Koa release I did the following:

  1. In the edx-platform directory:
      cd /edx/app/edxapp/edx-platform
  2. Run the following Django management command:
      python manage.py lms dump_course_ids --settings=devstack
  3. Find the course ID which you'd like to delete in the resulting list of course IDs.
  4. Copy the course ID into the following command and run it:
      python manage.py cms delete_course <COURSE_ID> --settings=devstack
      - You'll be asked to verify the deletion.
  5. To verify the deletion, run the command from step 2 above and ensure that the course ID is not in the list.