The Instructure Community will enter a read-only state on November 22, 2025 as we prepare to migrate to our new Community platform in early December. Read our blog post for more info about this change.
Found this content helpful? Log in or sign up to leave a like!
I created a new canvas course, but all the announcements from the previous course transfer as well. How do I do a mass delete of all these announcements without having to individually delete each one? thanks in advance
Solved! Go to Solution.
Hi @arcelia_dalton ,
The https://community.canvaslms.com/docs/DOC-10420-415250733 guide shows how to delete multiple announcements on the Announcements page.
Naomi
One way is to use the Javascript console and type the following line. It will select all visible checkboxes and you can them delete them all at once:
document.querySelectorAll("input").forEach(e => e.click())
You can also create a bookmark with a slight modification:
javascript:document.querySelectorAll("input").forEach(e => e.click())
OMG! This was so totally cool and it works!
Went to my Announcements page in Canvas. Then, under Chrome browser, three vertical dots, More tools, Developer tools (Shift+Ctrl+I)
and I typed in
document.querySelectorAll("input").forEach(e => e.click())
Didn't understand the bookmark suggestion but the above works great in selecting ALL the Announcement checkboxes on the page after I entered the Javascript code in the Console! Probably on other types of pages too with checkboxes, eh?! Wow! So jazzed, thanks 😉
Try this. It worked for me
Went to my Announcements page in Canvas. Then, under Chrome browser, three vertical dots, More tools, Developer tools (Shift+Ctrl+I)
and I typed in
document.querySelectorAll("input").forEach(e => e.click())
Hi @arcelia_dalton ,
The https://community.canvaslms.com/docs/DOC-10420-415250733 guide shows how to delete multiple announcements on the Announcements page.
Naomi
I guess my question if there is an easier way to delete the announcements without have to click each individually one. When I copied the canvas course, all my announcements copied as well and I have like 100 + announcements to delete and by clicking on each box, will take a while. So I was wondering if there was an easier way.
Hi @arcelia_dalton ,
Oh, I see. Thanks for following up! Currently, that's the best way to delete multiple announcements. We do have a feature idea that suggests updating this functionality in Canvas: https://community.canvaslms.com/ideas/12122-bulk-editing-options-for-announcements" modifiedtitle="t.... If you'd like to support the idea, you can vote on it and/or add comments.
Naomi
Thank you
Pleasssssssse! YASSS
Hi @hroychow ...
You might want to take a look at this posting which is in the newly revised "Ideas & Themes" space here in the Community:
Simplify bulk course tasks - Instructure Community (canvaslms.com)
This is currently in the "THEMES: IDENTIFIED" tab of this page:
Canvas Ideas and Themes - Instructure Community (canvaslms.com)
I hope this helps in some way.
One way is to use the Javascript console and type the following line. It will select all visible checkboxes and you can them delete them all at once:
document.querySelectorAll("input").forEach(e => e.click())
You can also create a bookmark with a slight modification:
javascript:document.querySelectorAll("input").forEach(e => e.click())
OMG! This was so totally cool and it works!
Went to my Announcements page in Canvas. Then, under Chrome browser, three vertical dots, More tools, Developer tools (Shift+Ctrl+I)
and I typed in
document.querySelectorAll("input").forEach(e => e.click())
Didn't understand the bookmark suggestion but the above works great in selecting ALL the Announcement checkboxes on the page after I entered the Javascript code in the Console! Probably on other types of pages too with checkboxes, eh?! Wow! So jazzed, thanks 😉
My Developer Tools is grayed out and can't be accessed.
This is great! Thank you. I might add for those of you not familiar with accessing the Developer Tools to click on the Console tab - this is where you type the command that Nico gave us: document.querySelectorAll("input").forEach(e => e.click())
Thanks again!
Try this. It worked for me
Went to my Announcements page in Canvas. Then, under Chrome browser, three vertical dots, More tools, Developer tools (Shift+Ctrl+I)
and I typed in
document.querySelectorAll("input").forEach(e => e.click())
Developer tools are greyed out. ☹️
Community helpTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign inTo interact with Panda Bot, our automated chatbot, you need to sign up or log in:
Sign in