# Remove the 'clonable' tag from all courses that are 'stay_in_sandbox'

sandboxed = Course.all.select { |c| c.stay_in_sandbox? }
sandoxed_cloneable = sandboxed.select { |c| c.tag?('cloneable') }
course_ids = sandboxed_cloneable.map(&:id)
tags = Tag.where(course_id: course_ids, tag: 'cloneable')
tags.destroy_all

Add cleanup script for cloneable sandboxed courses
Add cleanup script for cloneable sandboxed courses

The 'stay_in_sandboxes' option was an experiment that we've decided isn't worth continuing, so we want to make sure the old courses that were set up with timeline content built around staying in sandboxes don't get cloned.

I used this script to remove the 'cloneable' tag from all the sandboxed courses in Wiki Education Dashboard production.
