bulk_delete_announcements
Remove multiple announcements from a Canvas course in a single operation, with options to handle errors and continue processing remaining items.
Instructions
Delete multiple announcements from a Canvas course.
Args:
course_identifier: The Canvas course code or ID
announcement_ids: List of announcement IDs to delete
stop_on_error: If True, stop processing on first error; if False, continue with remaining
Returns:
String with detailed results including successful and failed deletions
Example usage:
results = bulk_delete_announcements(
"60366",
["925355", "925354", "925353"],
stop_on_error=False
)
Input Schema
Name | Required | Description | Default |
---|---|---|---|
announcement_ids | Yes | ||
course_identifier | Yes | ||
stop_on_error | No |
Input Schema (JSON Schema)
{
"properties": {
"announcement_ids": {
"items": {
"anyOf": [
{
"type": "string"
},
{
"type": "integer"
}
]
},
"title": "Announcement Ids",
"type": "array"
},
"course_identifier": {
"anyOf": [
{
"type": "string"
},
{
"type": "integer"
}
],
"title": "Course Identifier"
},
"stop_on_error": {
"default": false,
"title": "Stop On Error",
"type": "boolean"
}
},
"required": [
"course_identifier",
"announcement_ids"
],
"type": "object"
}