delete_announcement
Remove an announcement from a Canvas course by specifying the course identifier and announcement ID. This tool handles deletion of discussion topics that function as announcements in the Canvas LMS.
Instructions
Delete an announcement from a Canvas course.
Announcements are technically discussion topics in Canvas, so this uses
the discussion_topics endpoint to delete them.
Args:
course_identifier: The Canvas course code (e.g., badm_554_120251_246794) or ID
announcement_id: The Canvas announcement/discussion topic ID to delete
Returns:
String describing the deletion result with status and title
Raises:
HTTPError:
- 401: User doesn't have permission to delete the announcement
- 404: Announcement not found in the specified course
- 403: Editing is restricted for this announcement
Example usage:
result = delete_announcement("60366", "925355")
print(f"Result: {result}")
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| announcement_id | Yes | ||
| course_identifier | Yes |