Reset Course Content Before Import — A Moodle Idea I Had to Steal @ChuckSeverance
Reset Course Content Before Import — A Moodle Idea I Had to Steal  @ChuckSeverance
Uploaded October 2026 | Updated November 2026, 14 hours ago
In this episode, I add one of my favorite Moodle import ideas to Tsugi:

the ability to wipe a course’s existing content before importing a new Common Cartridge.

The key distinction is that I do not want to delete the course itself.

I want to keep the course, its identity, and its memberships — but optionally remove the content inside it before starting the import.

So the import screen now gives you two choices:

Add the imported content to the existing course
Delete the course’s existing content first, then import

The default is the safe additive behavior.

If you choose the destructive option, Tsugi clears out the course content before loading the cartridge.

That includes things like:

Pages
Files
Lessons
Quizzes
LTI resource links
Gradebook/result data associated with those resources
Import-history rows used for duplicate detection

That last one is especially important. If the course is being reset, the duplicate-detection history has to be reset too, or the importer may incorrectly think content is already present.

The two-phase import flow makes this much safer: Tsugi can first upload and inspect the cartridge, show you what is inside, and only then perform the destructive reset when you actually start the import.

For me, this is an enormous testing improvement.

Now I can import a large course, examine the result, wipe the course content, and immediately try again without creating a brand-new course every time.

While testing, I also clean up another annoyance: imported files should land at the root of the course file area rather than repeatedly nesting themselves inside an imported directory on round trips.

And, naturally, testing reveals more work for the to-do list — including unsafe file suffix handling and post-import LTI configuration.

That is exactly why this reset feature is so valuable: it makes destructive, repetitive import testing fast enough that I can keep finding and fixing those edge cases.
Reset Course Content Before Import — A Moodle Idea I Had to StealDJ 05.03 Document Object Model vs HTML Source Code (13:34)Installing Python on Windows-11AI Coding with Dr. Chuck: Building the Org UI to Prove the Data Model WorksMid Ohio - Tristan Day 2 - 2026-04-12 - RacingDjango for Everybody Week 14: Many-to-Many Relationships, Comments, and the FinalDjango Midterm Preview: What to Expect and How to Prepare | Dr. Chuck – Week 10Python for Everybody with AI – New Course Starts January 2027 | Dr. ChuckGoodbye GIFT — Automatically Converting Legacy Quizzes to QTIMoodle Made Me Simplify Common Cartridge — And It WorkedShelby takes a swim at Haserot Beach on Mission Point MI #dogcation #aussie #spoiledpup(Halloween Edition) Evil HTML vs. Tsugi — Safely Serving Dangerous Uploaded Files
Chuck Severance |

Reset Course Content Before Import — A Moodle Idea I Had to Steal

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER