open edx delete course

3,042 views
Skip to first unread message

성범석

unread,
Feb 2, 2016, 9:27:36 AM2/2/16
to General Open edX discussion

Hi all,


I want to remove the course I made.

Feanil Patel

unread,
Feb 2, 2016, 9:30:53 AM2/2/16
to edx-code
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.

성범석

unread,
Feb 2, 2016, 7:15:46 PM2/2/16
to General Open edX discussion
Thank you. However, an error occurs. 

manage.edxapp delete_course: error: unrecognized arguments: commit

2016년 2월 2일 화요일 오후 11시 30분 53초 UTC+9, Feanil Patel 님의 말:

re...@proversity.org

unread,
Feb 5, 2016, 2:24:48 AM2/5/16
to General Open edX discussion
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

성범석

unread,
Feb 10, 2016, 9:45:29 PM2/10/16
to General Open edX discussion
sorry for late reply. But it fixed the problem thanks.

2016년 2월 5일 금요일 오후 4시 24분 48초 UTC+9, re...@proversity.org 님의 말:

kothapalli...@gmail.com

unread,
Apr 14, 2016, 6:14:51 AM4/14/16
to General Open edX discussion
Hi,

 am getting same error can you please tell me how to resolve.

An

unread,
Apr 21, 2016, 6:07:39 AM4/21/16
to General Open edX discussion
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,

Kris Bhojwani

unread,
Jun 24, 2019, 7:21:44 AM6/24/19
to General Open edX discussion
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"
Reply all
Reply to author
Forward
0 new messages