The following commands worked for ironwood.1 1) Change directory cd /edx/app/edxapp/edx-platform
2) print all the courses available sudo -u edxapp /edx/bin/python.edxapp ./manage.py lms dump_course_ids --settings production 3) Delete the course you want to remove sudo -u edxapp /edx/bin/python.edxapp ./manage.py cms --settings=production delete_course "PASTE_THE_COURSE_ID_YOU_WANT_TO_DELETE" On Thursday, 21 April 2016 17:07:39 UTC+7, An wrote: > > Hello , > > I tried your solution but unlucky not work > > when delete i got issue below: > > === > File > "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/mixed.py", > > line 800, in delete_item > return store.delete_item(location, user_id=user_id, **kwargs) > File > "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/split_mongo/split_draft.py", > > line 237, in delete_item > super(DraftVersioningModuleStore, self).delete_item(branched_location, > user_id) > File > "/edx/app/edxapp/edx-platform/common/lib/xmodule/xmodule/modulestore/split_mongo/split.py", > > line 2567, in delete_item > usage_locator, > ValueError: Cannot delete block_key BlockKey(type=u'chapter', > id=u'd8a6192ade314473a78242dfeedfbf5b') > === > > May you help > Thanks > An, > > On Friday, 5 February 2016 14:24:48 UTC+7, re...@proversity.org wrote: >> >> Hi, did you run delete_orphans before delete_course? If not, it does >> cause some problems. To get around it you can remove the content manually >> from the django shell (remember there is course content in both mysql and >> mongo datastores). If you are in a dev environment I suggest reinstalling, >> its a bit of a mission to remove the orphans. R >> >> cd /edx/app/edxapp/edx-platform >> $ sudo -u edxapp /edx/bin/python.edxapp ./manage.py lms dump_course_ids >> --settings aws >> $ sudo -u edxapp /edx/bin/python.edxapp ./manage.py cms --settings=aws >> delete_orphans COURSE_ID --commit >> $ sudo -u edxapp /edx/bin/python.edxapp ./manage.py cms --settings=aws >> delete_course COURSE_ID >> >> On Wednesday, February 3, 2016 at 2:15:46 AM UTC+2, 성범석 wrote: >>> >>> Thank you. However, an error occurs. >>> >>> manage.edxapp delete_course: error: unrecognized arguments: commit >>> >>> 2016년 2월 2일 화요일 오후 11시 30분 53초 UTC+9, Feanil Patel 님의 말: >>>> >>>> Hello, >>>> >>>> You can find information on how to do that here: >>>> https://openedx.atlassian.net/wiki/display/PLAT/How+to+Delete+a+Course >>>> >>>> -Feanil >>>> >>>> On Tue, Feb 2, 2016 at 3:50 AM, 성범석 <sbs...@gmail.com> wrote: >>>> >>>>> Hi all, >>>>> >>>>> >>>>> I want to remove the course I made. >>>>> >>>>> -- >>>>> You received this message because you are subscribed to the Google >>>>> Groups "General Open edX discussion" group. >>>>> To view this discussion on the web visit >>>>> https://groups.google.com/d/msgid/edx-code/307de70d-48c3-421b-b1e5-f4c4060caa03%40googlegroups.com >>>>> >>>>> <https://groups.google.com/d/msgid/edx-code/307de70d-48c3-421b-b1e5-f4c4060caa03%40googlegroups.com?utm_medium=email&utm_source=footer> >>>>> . >>>>> >>>> >>>> -- You received this message because you are subscribed to the Google Groups "General Open edX discussion" group. To unsubscribe from this group and stop receiving emails from it, send an email to edx-code+unsubscr...@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/edx-code/60f2599a-8d97-4ffb-8e9b-ebd1605e354c%40googlegroups.com.