Deleted Course but still showing under /courses

Hi all,

I deleted some courses with:

tutor local exec cms ./manage.py cms --setting=tutor.production delete_course ‘course-v1:ABC+XYZ+February-20th-24th-2025’

But the courses are still visible on the /courses page of the LMS. After reading this post, which has outdated information for Surac, I tried:

tutor local exec cms ./manage.py cms reindex_course --all

But the deleted courses still display. I exec’ed into the redis container and ran redis_cli flushall but this too appeared to have no effect. Can someone assist?

Thanks

1 Like

So I traced the course overview url to “class CourseOverview(TimeStampedModel):”. I found the table course_overviews_courseoverview in the mysql database and it only contains valid data. I queried the mongo store and found under database openedx the collection modulestore.definitions. This collection contains some stale data but I am not sure if this is linked to the url and can I just delete the invalid data?