Deleting announcements

If you want to programmatically delete announcements from a course you can use a program such as  Download delete-all-course-announcements.py

The program takes as an argument the course_id. This is optionally followed by a starting date and an ending date. The program will delete all of the matching announcements. Note that since discussion items are basically similar to announcements, a small change to the program could be used to delete discussion items.