# Teacher or admin can delete private comments and course comments

## Description:

Teacher/admin (any user with permission to edit the course itself) can delete private comments and course comments.

## Step-by-Step Procedure:

1. Login as admin.
2. Click on "Courses."
3. Click on the "+ Course" button.
4. Click on the "Add a new course" button.
5. Enter a course name.
6. Click on the "Description" field.
7. New text block appears.
8. Enter the description.
9. Click on the "Done" button.
10. Click "Save" button to save the course.
11. Click on the "Courses"
12. Click on the course name.
13. Click on the "Members" tab.
14. Click on the "Add a teacher" button
15. Click on "Add a new person" button
16. Enter the teacher's first name, last name and Gender.
17. Click on the "Save" button and save the person details.
18. Click on the "Save" button to save the enrollment details.
19. Click on the teacher name.
20. Click on the "View profile" button.
21. Click on the "Create account" button.
22. Enter the username.
23. Enter the password.
24. Click on the "Save button"
25. Click on "People".
26. Click on "+ Person" button.
27. Click on "Bulk import" button.
28. Click on "Select file" button.
29. Select the csv file.
30. Click on "Import"
31. Verify the import success message.
32. Clear the app storage
33. Login to the app using the teacher username and password.
34. Click on "Courses" tab.
35. Click on the course name.
36. Click on "Edit" button.
37. Click on "Add block" button
38. Click on "Assignment".
39. Enter the assignment title in the "Title" field.
40. Enter the assignment description in the "Description" field.
41. Set the submission policy to "Must submit all at once".
42. Click on the "Done" button.
43. Click on the "Save" button.
44. Click on assignment name.
45. Enter a comment on "Add a class comment" field.
46. Click on "Send" icon.
47. Clear the app storage
48. Login to the app using the student username and password.
49. Click on "Courses" tab.
50. Click on the course name.
51. Click on the assignment added by teacher.
52. Enter a comment on "Add a class comment" field.
53. Click on "Send" icon.
54. Verify that student's and teacher's class comment is visible for the student.
55. Clear the app storage 
56. Login to the app using the teacher username and password. 
57. Click on "Courses" tab. 
58. Click on the course name.
59. Click on assignment.
60. Verify the teacher able to see the course comment from student.
61. Click on "More options" icon next to the student course comment.
62. Click on "Delete" button.
63. Verify the course comment is not visible.