edx-platform - How to delete a comment thread in discussion

Right now, there is no UI for deleting a comment  thread in a course in Open EdX, you have to do it at the server side:

1. Get the comment thread ID by looking at the URL, for example:

http://mydomain.com/courses/MYSCHOOL/Cu_001/201405/discussion/forum/i4x-MYSCHOOL_X_001-course-201405/threads/53b0eeec1240cdb524333331

2. Go the the server, access the mongodb cli, delete the comment by ID:

edxapp@demo:~/edx-platform$ mongo
MongoDB shell version: 2.4.10
connecting to: test
Welcome to the MongoDB shell.
For interactive help, type "help".
For more comprehensive documentation, see
        http://docs.mongodb.org/
Questions? Try the support group
        http://groups.google.com/group/mongodb-user

> use cs_comments_service_development
switched to db cs_comments_service_development

db.contents.remove({"_id": ObjectId("53b0eeec1240cdb524333331")})


P/S: I also updated this to the documentation of OpenEdX's comment service: https://github.com/edx/cs_comments_service/wiki/Query-or-Delete-comments-data-in-mongodb


Comments