Currently, in order to give a non-editing teacher permission to delete an activity, we also also have to give them the ability to edit the activity and add new ones.
Steps to reproduce:
1. Within a course go to 'Assign roles', 'Override permissions' and choose 'Non-editing teacher'.
2. Change Moodle/course:manageactivities from 'inherit' to 'allow' for a non-editing teacher in a course
A non-editing teacher can delete an activity within a course but can also add and update activities.
It would be good to give a user one of the capabilities without the others (e.g. to give a non-editing teacher the ability to turn editing on and delete an activity without them being able to add new activities or update existing ones).