# 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. Using http api endpoint created a class with students and teachers already enrolled and setup.
2. Login to the app using the teacher username and password.
3. Click on "Courses" tab.
4. Click on the course name.
5. Click on "Edit" button.
6. Click on "Add block" button
7. Click on "Assignment".
8. Enter the assignment title in the "Title" field.
9. Enter the assignment description in the "Description" field.
10. Set the submission policy to "Must submit all at once".
11. Click on the "Done" button.
12. Click on the "Save" button.
13. Click on assignment name.
14. Enter a comment on "Add a class comment" field.
15. Click on "Send" icon.
16. Clear the app storage
17. Login to the app using the student username and password.
18. Click on "Courses" tab.
19. Click on the course name.
20. Click on the assignment added by teacher.
21. Enter a comment on "Add a class comment" field.
22. Click on "Send" icon.
23. Verify that student's and teacher's class comment is visible for the student.
24. Clear the app storage 
25. Login to the app using the teacher username and password. 
26. Click on "Courses" tab. 
27. Click on the course name.
28. Click on assignment.
29. Verify the teacher able to see the course comment from student.
30. Click on "More options" icon next to the student course comment.
31. Click on "Delete" button.
32. Verify the course comment is not visible.