Make delete work for courses in sandbox as well