Elastic search index (reindex all course) command error

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

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

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-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…