# Elastic search index (reindex all course) command error

**URL:** <https://discuss.openedx.org/t/elastic-search-index-reindex-all-course-command-error/7523>\
**Category:** Site Operations Help\
**Created:** [June 17, 2022, 6:22am UTC](https://discuss.openedx.org/t/elastic-search-index-reindex-all-course-command-error/7523 "2022-06-17T06:22:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rose](https://sea2.discourse-cdn.com/flex020/user_avatar/discuss.openedx.org/rose/32/2608_2.png) [@rose](https://discuss.openedx.org/u/rose)\
**Post date:** [June 17, 2022, 6:22am UTC](https://discuss.openedx.org/t/elastic-search-index-reindex-all-course-command-error/7523/1 "2022-06-17T06:22:03Z")

</div>

Hi dear all, I’m facing deleted course error still appear in LMS page and I asked this link

> [@Course delete but still appear in LMS site](https://discuss.openedx.org/t/course-delete-but-still-appear-in-lms-site/7435):
>
> Hi dear all, I have deleted courses in backend and this course is not found in studio but this course is still appear in LMS site and when I click this course that is not found page. How can I fix? This error is in my ironwood production site. pls …

Now I try to delete this command and this error show.

curl -XDELETE ‘[http://localhost:9200/courseware\_index/course\_info/\_query](http://localhost:9200/courseware_index/course_info/_query)’ -d ‘{ “term” : { “course” : “course-v1:YUECO+MHTM-221+Second\_Yr\_Second\_Quarter” } }’

curl -XDELETE ‘[http://localhost:9200/courseware\_index/courseware\_content/\_query](http://localhost:9200/courseware_index/courseware_content/_query)’ -d ‘{  
“term” : { “course” : “course-v1:YUECO+CS909+2022\_T5” }  
}’

OR

`curl -XDELETE 'http://localhost:9200/courseware_index/course_info/_query' -d '{"term" : { "course" : "course-v1:YUECO+MHTM-221+Second_Yr_Second_Quarter" }}'`

`curl -XDELETE 'http://localhost:9200/courseware_index/courseware_content/_query' -d '{"term" : { "course" : "course_id" }}'`

Pls check and advice me…

 ![image](https://us1.discourse-cdn.com/flex020/uploads/openedx/original/2X/d/ddf002960afd677686dcf7831e0c891d9f59cd1a.png)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex020/uploads/openedx/original/2X/e/e0015f89e879bc75925b71fd11133ab15fe98297.png) [@system](https://discuss.openedx.org/u/system)\
**Post date:** [September 15, 2022, 6:22am UTC](https://discuss.openedx.org/t/elastic-search-index-reindex-all-course-command-error/7523/2 "2022-09-15T06:22:49Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
